Available on crate feature
lock_api
only.Expand description
Spin synchronisation primitives, but compatible with lock_api
.
Type Aliases§
- Mutex
mutex
A lock that provides mutually exclusive data access (compatible withlock_api
). - MutexGuard
mutex
A guard that provides mutable data access (compatible withlock_api
). - RwLock
rwlock
A lock that provides data access to either one writer or many readers (compatible withlock_api
). - RwLockReadGuard
rwlock
A guard that provides immutable data access (compatible withlock_api
). - A guard that provides immutable data access but can be upgraded to
RwLockWriteGuard
(compatible withlock_api
). - RwLockWriteGuard
rwlock
A guard that provides mutable data access (compatible withlock_api
).