mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-28 06:40:00 +00:00
Use SRW locks for our mutex on Windows
These avoid a kernel transition for uncontended cases
This commit is contained in:
1 parent
13041e0323
commit
ae92f15b0a
2 files changed
+5
-12
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user