State

value class State

A snapshot of a read-write mutex's state.

Properties

Link copied to clipboard

Returns the number of active readers only if the mutex is read-locked, otherwise null.

Link copied to clipboard

Returns true if there are pending readers or writers waiting to acquire the lock.

Link copied to clipboard

Returns true if read locks are available to be acquired.

Link copied to clipboard

Returns true if the mutex is read-locked and no writer is waiting.

Link copied to clipboard

Returns true if the mutex is unlocked.

Link copied to clipboard

Returns true if the mutex is write-locked.

Link copied to clipboard

Returns true if the mutex is read-locked or a writer is waiting to acquire the lock.

Link copied to clipboard

Returns the number of pending readers only if the mutex is write-locked, otherwise null.