UnfairSharedLock

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.

Members

Aliases

LockState
alias LockState = SharedLock.LockState

Lock state enum

Functions

acquireExclusive
void acquireExclusive(Timeout timeout)

Acquire an exclusive access lock

acquireShared
void acquireShared(Timeout timeout)

Acquire a shared access lock

releaseExclusive
void releaseExclusive()

Release a previously acquired exclusive access lock

releaseShared
void releaseShared()

Release a previously acquired shared access lock

Properties

state
LockState state [@property getter]

Return the current state of the lock.

Meta