Expand description
Useful synchronization primitives.
Modules§
- non_
null - This module provides a trait and some auxiliary types to help abstract and work with non-null pointers.
Structs§
- RoArc
- A reference-counting pointer with read-only capabilities.
- RwArc
- A reference-counting pointer with read-write capabilities.
- RwLock
- Spin-based Read-write Lock
- RwLock
Read Guard - A guard that provides immutable data access.
- RwLock
Upgradeable Guard - A guard that provides immutable data access but can be atomically
upgraded to
RwLockWriteGuard. - RwLock
Write Guard - A guard that provides mutable data access.
- Spin
Lock - A spin lock.
- Spin
Lock Guard - A guard that provides exclusive access to the data protected by a
SpinLock.
Enums§
- Local
IrqDisabled - A guardian that disables IRQs while holding a lock.
- Preempt
Disabled - A guardian that disables preemption while holding a lock.
Traits§
- Guard
Transfer - The Guard can be transferred atomically.
- Spin
Guardian - A guardian that denotes the guard behavior for holding a spin-based lock.