Expand description
This is public primarily for the integration tests in tests/*
, which is the
recommended way of writing loom tests.
Not actually intended for usage by other crates. Synchronization primitives that are modeled in loom
This module provides some very low-level primitives, such as atomics, and futex. When testing under loom they model the corresponding operation in loom instead of executing it natively.
Modules§
- atomic
- Atomic types
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
I32 - An integer type which can be safely shared between threads.
- Atomic
U32 - An integer type which can be safely shared between threads.
- Atomic
Usize - An integer type which can be safely shared between threads.
- Cell
- A mutable memory location.
- Const
Ptr - MutPtr
- Unsafe
Cell - From https://docs.rs/loom/latest/loom/#handling-loom-api-differences
Enums§
- Ordering
- Atomic memory orderings