Browse Source

Refs #307. Fixed the hang bug when free OpenBLAS dll in Windows.

tags/v0.2.9.rc1
Zhang Xianyi 12 years ago
parent
commit
a2942456ef
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      driver/others/blas_server_win32.c

+ 3
- 2
driver/others/blas_server_win32.c View File

@@ -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…
Cancel
Save