Crate utils_atomics
source ·Re-exports
pub use fill_queue::FillQueue;alloc
Modules
- channel
alloc - fill_queue
alloc - flag
alloc - notify
alloc
Structs
- AtomicBitBox
allocAn atomic bitfield with a static size, stored in a boxed slice. - AtomicCell
allocAn atomic cell that can be safely shared between threads and can contain an optional value. - Lock
allocA synchronization primitive that can be used to coordinate threads. - LockSub
allocA helper type used for coordination with theLock. - Inverse of a
OnceCell. It initializes with a value, which then can be raced by other threads to take. - Error returned when a timeout ocurrs before the main operation completes.
Traits
- BitFieldAble
alloc
Functions
- lock
allocAcquires aLockand its correspondingLockSubfor coordinating access to a shared resource.