Struct SharedLock
Shared access lock
struct SharedLock
;
A standard Read-Write lock. Supports multiple readers or a single writer.
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 |
Enums
Name | Description |
---|---|
LockState
|
The state of the lock, as returned by state .
|