Module sync

Source
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§

AtomicBool
A boolean type which can be safely shared between threads.
AtomicI8
An integer type which can be safely shared between threads.
AtomicI32
An integer type which can be safely shared between threads.
AtomicU32
An integer type which can be safely shared between threads.
AtomicUsize
An integer type which can be safely shared between threads.
Cell
A mutable memory location.
ConstPtr
MutPtr
UnsafeCell
From https://docs.rs/loom/latest/loom/#handling-loom-api-differences

Enums§

Ordering
Atomic memory orderings

Functions§

futex_wait
futex_wake_all
futex_wake_one
sched_yield