c3c icon indicating copy to clipboard operation
c3c copied to clipboard

Expose RWLocks for fast high read locks

Open joshring opened this issue 8 months ago • 1 comments

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

joshring avatar Mar 27 '25 10:03 joshring

Yes

lerno avatar Mar 27 '25 19:03 lerno