Crate parasol_concurrency

Source
Expand description

Contains primitives for synchronizing and safely managing concurrency.

Structsยง

AtomicRefCell
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.
SpinlockHandle
Semantically similar to std::sync::MutexGuard. Allows you to mutably access the underlying T and unlocks the parent lock when dropped.