Browse Source

Merge pull request #2339 from Jehan/wip/Jehan/fix-timeout

driver: more reasonable thread wait timeout on Windows.
tags/v0.3.8^2
Martin Kroeker GitHub 6 years ago
parent
commit
445ca2f418
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      driver/others/blas_server_win32.c

+ 1
- 1
driver/others/blas_server_win32.c View File

@@ -462,7 +462,7 @@ int BLASFUNC(blas_thread_shutdown)(void){


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


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


Loading…
Cancel
Save