Module rwlock

Source

Structsยง

RwLock
Spin-based Read-write Lock
RwLockReadGuard_
A guard that provides immutable data access.
RwLockUpgradeableGuard_
A guard that provides immutable data access but can be atomically upgraded to RwLockWriteGuard.
RwLockWriteGuard_
A guard that provides mutable data access.

Constantsยง

BEING_UPGRADED ๐Ÿ”’
MAX_READER ๐Ÿ”’
READER ๐Ÿ”’
UPGRADEABLE_READER ๐Ÿ”’
WRITER ๐Ÿ”’

Type Aliasesยง

ArcRwLockReadGuard
A guard that provides shared read access to the data protected by a Arc<RwLock>.
ArcRwLockUpgradeableGuard
A upgradable guard that provides read access to the data protected by a Arc<RwLock>.
ArcRwLockWriteGuard
A guard that provides exclusive write access to the data protected by a Arc<RwLock>.
RwLockReadGuard
A guard that provides shared read access to the data protected by a RwLock.
RwLockUpgradeableGuard
A upgradable guard that provides read access to the data protected by a RwLock.
RwLockWriteGuard
A guard that provides exclusive write access to the data protected by a RwLock.