projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8095b
)
Refs #307. Fixed the hang bug when free OpenBLAS dll in Windows.
author
Zhang Xianyi
<traits.zhang@gmail.com>
Wed, 13 Nov 2013 02:00:18 +0000
(10:00 +0800)
committer
Zhang Xianyi
<traits.zhang@gmail.com>
Wed, 13 Nov 2013 02:00:18 +0000
(10:00 +0800)
driver/others/blas_server_win32.c
patch
|
blob
|
history
diff --git
a/driver/others/blas_server_win32.c
b/driver/others/blas_server_win32.c
index
bd1069c
..
8723a6f
100644
(file)
--- a/
driver/others/blas_server_win32.c
+++ b/
driver/others/blas_server_win32.c
@@
-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;