Expand description
Mock implementation of std::sync
.
Re-exports§
pub use std::sync::LockResult;
pub use std::sync::TryLockResult;
Modules§
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
. - Mutex
Guard - 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
- RwLock
Read Guard - Mock implementation of
std::sync::RwLockReadGuard
- RwLock
Write Guard - Mock implementation of
std::sync::rwLockWriteGuard
- Wait
Timeout Result - A type indicating whether a timed wait on a condition variable returned due to a time out or not.