Use SRW locks for our mutex on Windows
These avoid a kernel transition for uncontended cases
This commit is contained in:
parent
13041e0323
commit
ae92f15b0a
2 changed files with 5 additions and 12 deletions
|
|
@ -6,7 +6,7 @@
|
|||
typedef void(*ThreadEntry)(void* context);
|
||||
|
||||
#if defined(LC_WINDOWS)
|
||||
typedef HANDLE PLT_MUTEX;
|
||||
typedef SRWLOCK PLT_MUTEX;
|
||||
typedef HANDLE PLT_EVENT;
|
||||
typedef struct _PLT_THREAD {
|
||||
HANDLE handle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue