Module raw

Module raw 

Source
Expand description

Raw, unsafe reader-writer locking implementation, doesnโ€™t depend on the data protected by the lock. RwLock is implemented in terms of this.

Splitting the implementation this way allows instantiating the locking code only once, and also lets us make RwLockReadGuard covariant in T.

Structsยง

RawRead ๐Ÿ”’
The future returned by RawRwLock::read.
RawRwLock ๐Ÿ”’
A โ€œrawโ€ RwLock that doesnโ€™t hold any data.
RawUpgradableRead ๐Ÿ”’
The future returned by RawRwLock::upgradable_read.
RawUpgrade ๐Ÿ”’
The future returned by RawRwLock::upgrade.
RawWrite ๐Ÿ”’
The future returned by RawRwLock::write.

Enumsยง

WriteState ๐Ÿ”’

Constantsยง

ONE_READER ๐Ÿ”’
WRITER_BIT ๐Ÿ”’