Skip to content

Commit 445ca2f

Browse files
authored
Merge pull request #2339 from Jehan/wip/Jehan/fix-timeout
driver: more reasonable thread wait timeout on Windows.
2 parents 1a6ea8e + 13226e3 commit 445ca2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: driver/others/blas_server_win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ int BLASFUNC(blas_thread_shutdown)(void){
462462

463463
for(i = 0; i < blas_num_threads - 1; i++){
464464
// Could also just use WaitForMultipleObjects
465-
DWORD wait_thread_value = WaitForSingleObject(blas_threads[i], 5000);
465+
DWORD wait_thread_value = WaitForSingleObject(blas_threads[i], 50);
466466

467467
#ifndef OS_WINDOWSSTORE
468468
// TerminateThread is only available with WINAPI_DESKTOP and WINAPI_SYSTEM not WINAPI_APP in UWP

0 commit comments

Comments
 (0)