|
|
|
@@ -461,13 +461,18 @@ int BLASFUNC(blas_thread_shutdown)(void){ |
|
|
|
SetEvent(pool.killed); |
|
|
|
|
|
|
|
for(i = 0; i < blas_num_threads - 1; i++){ |
|
|
|
// Could also just use WaitForMultipleObjects |
|
|
|
WaitForSingleObject(blas_threads[i], 5); //INFINITE); |
|
|
|
#ifndef OS_WINDOWSSTORE |
|
|
|
// TerminateThread is only available with WINAPI_DESKTOP and WINAPI_SYSTEM not WINAPI_APP in UWP |
|
|
|
TerminateThread(blas_threads[i],0); |
|
|
|
#endif |
|
|
|
CloseHandle(blas_threads[i]); |
|
|
|
} |
|
|
|
|
|
|
|
CloseHandle(pool.filled); |
|
|
|
CloseHandle(pool.killed); |
|
|
|
|
|
|
|
blas_server_avail = 0; |
|
|
|
} |
|
|
|
|
|
|
|
|