c3c
c3c copied to clipboard
Expose RWLocks for fast high read locks
Currently we have the Posix family of functions pthread_rwlock_init ... pthread_rwlock_*
The windows equivalent: https://learn.microsoft.com/en-us/windows/win32/sync/slim-reader-writer--srw--locks
AcquireSRWLockExclusive
AcquireSRWLockShared
InitializeSRWLock
ReleaseSRWLockExclusive
ReleaseSRWLockShared
SleepConditionVariableSRW
TryAcquireSRWLockExclusive
TryAcquireSRWLockShared
If we can add the Windows family we can then create a more general abstraction?
I would be interested to look at this later on
Yes