Skip to content

Commit a294245

Browse files
committed
Refs #307. Fixed the hang bug when free OpenBLAS dll in Windows.
1 parent 6d8095b commit a294245

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

driver/others/blas_server_win32.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,9 +441,10 @@ int BLASFUNC(blas_thread_shutdown)(void){
441441
if (blas_server_avail){
442442

443443
SetEvent(pool.killed);
444-
444+
printf("blas_num_threads=%d\n", blas_num_threads);
445445
for(i = 0; i < blas_num_threads - 1; i++){
446-
WaitForSingleObject(blas_threads[i], INFINITE);
446+
WaitForSingleObject(blas_threads[i], 5); //INFINITE);
447+
TerminateThread(blas_threads[i],0);
447448
}
448449

449450
blas_server_avail = 0;

0 commit comments

Comments
 (0)