Expand description
This crate provides different synchronization primitives.
Modules§
- hint
- Re-export of the
core::hint
module.
Macros§
- cfg_
has_ atomic_ 8 - cfg_
has_ atomic_ 16 - cfg_
has_ atomic_ 32 - cfg_
has_ atomic_ 64 - cfg_
has_ atomic_ 128 - cfg_
has_ atomic_ cas - cfg_
has_ atomic_ ptr - cfg_
no_ atomic_ 8 - cfg_
no_ atomic_ 16 - cfg_
no_ atomic_ 32 - cfg_
no_ atomic_ 64 - cfg_
no_ atomic_ 128 - cfg_
no_ atomic_ cas - cfg_
no_ atomic_ ptr - executed
- Returns whether this statement was already executed.
Structs§
- Atomic
Bool - A boolean type which can be safely shared between threads.
- Atomic
I8 - An integer type which can be safely shared between threads.
- Atomic
I16 - An integer type which can be safely shared between threads.
- Atomic
I32 - An integer type which can be safely shared between threads.
- Atomic
I64 - An integer type which can be safely shared between threads.
- Atomic
Isize - An integer type which can be safely shared between threads.
- Atomic
Ptr - A raw pointer type which can be safely shared between threads.
- Atomic
U8 - An integer type which can be safely shared between threads.
- Atomic
U16 - An integer type which can be safely shared between threads.
- Atomic
U32 - An integer type which can be safely shared between threads.
- Atomic
U64 - An integer type which can be safely shared between threads.
- Atomic
Usize - An integer type which can be safely shared between threads.
- Mutex
- Non-blocking non-reentrant mutex.
- Take
Cell - Convenient wrapper around
Mutex<Option<T>>
.
Enums§
- Ordering
- Atomic memory orderings
Functions§
- compiler_
fence - A “compiler-only” atomic fence.
- fence
- An atomic fence.
Type Aliases§
- Lazy
- A value which is initialized on the first access. See
lazy::Lazy
for documentation. - Mutex
Guard - Locks a mutex and provides access to its content until dropped.