Module loom::sync

source ·
Expand description

Mock implementation of std::sync.

Re-exports

Modules

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

Structs

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