Unfair shared access lock
This behaves like a standard read-write lock, except an exclusive lock is only obtained after all shared users have relinquished the lock.
Lock state enum
Acquire an exclusive access lock
Acquire a shared access lock
Release a previously acquired exclusive access lock
Release a previously acquired shared access lock
Return the current state of the lock.
See Implementation
Unfair shared access lock
This behaves like a standard read-write lock, except an exclusive lock is only obtained after all shared users have relinquished the lock.