Struct UnfairSharedLock
Unfair shared access lock
struct UnfairSharedLock
;
This behaves like a standard read-write lock, except an exclusive lock is only obtained after all shared users have relinquished the lock.
Properties
Name | Type | Description |
---|---|---|
state [get]
|
SharedLock | Return the current state of the lock. |
Methods
Name | Description |
---|---|
acquireExclusive
|
Acquire an exclusive access lock |
acquireShared
|
Acquire a shared access lock |
releaseExclusive
|
Release a previously acquired exclusive access lock |
releaseShared
|
Release a previously acquired shared access lock |
Aliases
Name | Description |
---|---|
LockState
|
Lock state enum |