Crate wasefire_sync

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

AtomicBool
A boolean type which can be safely shared between threads.
AtomicI8
An integer type which can be safely shared between threads.
AtomicI16
An integer type which can be safely shared between threads.
AtomicI32
An integer type which can be safely shared between threads.
AtomicI64
An integer type which can be safely shared between threads.
AtomicIsize
An integer type which can be safely shared between threads.
AtomicPtr
A raw pointer type which can be safely shared between threads.
AtomicU8
An integer type which can be safely shared between threads.
AtomicU16
An integer type which can be safely shared between threads.
AtomicU32
An integer type which can be safely shared between threads.
AtomicU64
An integer type which can be safely shared between threads.
AtomicUsize
An integer type which can be safely shared between threads.
Mutex
Non-blocking non-reentrant mutex.
TakeCell
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.
MutexGuard
Locks a mutex and provides access to its content until dropped.