Module spin::lock_api [−][src]
This is supported on crate feature
lock_api
only.Expand description
Spin synchronisation primitives, but compatible with lock_api
.
Type Definitions
Mutex
mutex
A lock that provides mutually exclusive data access (compatible with lock_api
).
MutexGuard
mutex
A guard that provides mutable data access (compatible with lock_api
).
RwLock
rwlock
A lock that provides data access to either one writer or many readers (compatible with lock_api
).
RwLockReadGuard
rwlock
A guard that provides immutable data access (compatible with lock_api
).
A guard that provides immutable data access but can be upgraded to RwLockWriteGuard
(compatible with lock_api
).
RwLockWriteGuard
rwlock
A guard that provides mutable data access (compatible with lock_api
).