Crate parking_lot[−][src]
Expand description
This library provides implementations of Mutex, RwLock, Condvar and
Once that are smaller, faster and more flexible than those in the Rust
standard library. It also provides a ReentrantMutex type.
Structs
A Condition Variable
A mutual exclusion primitive useful for protecting shared data
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
A synchronization primitive which can be used to run a one-time initialization. Useful for one-time initialization for globals, FFI or related functionality.
State yielded to the call_once_force method which can be used to query
whether the Once was previously poisoned or not.
A mutex which can be recursively locked by a single thread.
An RAII implementation of a “scoped lock” of a reentrant mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
A reader-writer lock
RAII structure used to release the shared read access of a lock when dropped.
RAII structure used to release the exclusive write access of a lock when dropped.
A type indicating whether a timed wait on a condition variable returned due to a time out or not.
Constants
Initialization value for static Once values.
Type Definitions
Typedef of an owning reference that uses a MutexGuard as the owner.
Typedef of an owning reference that uses a ReentrantMutexGuard as the owner.
Typedef of an owning reference that uses a RwLockReadGuard as the owner.
Typedef of an owning reference that uses a RwLockWriteGuard as the owner.
