Merge b89aef2f32
into 136a4edc5f
This commit is contained in:
commit
7df73ba366
|
@ -460,14 +460,7 @@ int BLASFUNC(blas_thread_shutdown)(void) {
|
||||||
|
|
||||||
for (i = 0; i < blas_num_threads - 1; i++) {
|
for (i = 0; i < blas_num_threads - 1; i++) {
|
||||||
// Could also just use WaitForMultipleObjects
|
// Could also just use WaitForMultipleObjects
|
||||||
DWORD wait_thread_value = WaitForSingleObject(blas_threads[i], 50);
|
DWORD wait_thread_value = WaitForSingleObject(blas_threads[i], INFINITE);
|
||||||
|
|
||||||
#ifndef OS_WINDOWSSTORE
|
|
||||||
// TerminateThread is only available with WINAPI_DESKTOP and WINAPI_SYSTEM not WINAPI_APP in UWP
|
|
||||||
if (WAIT_OBJECT_0 != wait_thread_value) {
|
|
||||||
TerminateThread(blas_threads[i],0);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CloseHandle(blas_threads[i]);
|
CloseHandle(blas_threads[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue