SharedLock

Shared access lock

A standard Read-Write lock. Supports multiple readers or a single writer.

Members

Enums

LockState
enum LockState

The state of the lock, as returned by state.

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