Module sync

Source
Expand description

Mock implementation of std::sync.

Re-exports§

pub use std::sync::LockResult;
pub use std::sync::TryLockResult;

Modules§

atomic
Mock implementation of std::sync::atomic.
mpsc
A stub for std::sync::mpsc.

Structs§

Arc
Mock implementation of std::sync::Arc.
Barrier
std::sync::Barrier is not supported yet in Loom. This stub is provided just to make the code to compile.
Condvar
Mock implementation of std::sync::Condvar.
Mutex
Mock implementation of std::sync::Mutex.
MutexGuard
Mock implementation of std::sync::MutexGuard.
Notify
Implements the park / unpark pattern directly using Loom’s internal primitives.
RwLock
Mock implementation of std::sync::RwLock
RwLockReadGuard
Mock implementation of std::sync::RwLockReadGuard
RwLockWriteGuard
Mock implementation of std::sync::rwLockWriteGuard
WaitTimeoutResult
A type indicating whether a timed wait on a condition variable returned due to a time out or not.