Refs #307. Fixed the hang bug when free OpenBLAS dll in Windows.
This commit is contained in:
parent
6d8095bcb9
commit
a2942456ef
|
@ -441,9 +441,10 @@ int BLASFUNC(blas_thread_shutdown)(void){
|
|||
if (blas_server_avail){
|
||||
|
||||
SetEvent(pool.killed);
|
||||
|
||||
printf("blas_num_threads=%d\n", blas_num_threads);
|
||||
for(i = 0; i < blas_num_threads - 1; i++){
|
||||
WaitForSingleObject(blas_threads[i], INFINITE);
|
||||
WaitForSingleObject(blas_threads[i], 5); //INFINITE);
|
||||
TerminateThread(blas_threads[i],0);
|
||||
}
|
||||
|
||||
blas_server_avail = 0;
|
||||
|
|
Loading…
Reference in New Issue