Browse Source

Merge pull request #4835 from martin-frbg/revertwin4359

Temporarily revert to the coarse-grained locking in the Windows thread server
tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
753c7ebe17
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 591 additions and 666 deletions
  1. +2
    -2
      common_thread.h
  2. +589
    -664
      driver/others/blas_server_win32.c

+ 2
- 2
common_thread.h View File

@@ -111,8 +111,8 @@ typedef struct blas_queue {
struct blas_queue *next; struct blas_queue *next;


#if defined( __WIN32__) || defined(__CYGWIN32__) || defined(_WIN32) || defined(__CYGWIN__) #if defined( __WIN32__) || defined(__CYGWIN32__) || defined(_WIN32) || defined(__CYGWIN__)
// CRITICAL_SECTION lock;
// HANDLE finish;
CRITICAL_SECTION lock;
HANDLE finish;
volatile int finished; volatile int finished;
#else #else
pthread_mutex_t lock; pthread_mutex_t lock;


+ 589
- 664
driver/others/blas_server_win32.c
File diff suppressed because it is too large
View File


Loading…
Cancel
Save