Expand description
Contains primitives for synchronizing and safely managing concurrency.
Structsยง
- Atomic
RefCell - Similar to std::cell::RefCell, but works in a concurrent setting.
- Ref
- An immutable borrow returned by
AtomicRefCell
. - RefMut
- A mutable borrow returned by
AtomicRefCell
. - Spinlock
- The use of Spinlocks in user processes is a contentious topic. However, they allow for some unconventional patterns, such as permanantly locking objects and dropping locked locks.
- Spinlock
Handle - Semantically similar to
std::sync::MutexGuard
. Allows you to mutably access the underlyingT
and unlocks the parent lock when dropped.