Module loom::sync[][src]

Mock implementation of std::sync.

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 implementatoin 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.

Type Definitions

LockResult

A type alias for the result of a lock method which can be poisoned.

TryLockResult

A type alias for the result of a nonblocking locking method.