Skip to main content

Module sync

Module sync 

Source

Modules§

mpsc
Instrumented std::sync::mpsc channel endpoints for channel!. With hotpath-meta enabled these are the instrumented wrappers; otherwise channel! is a no-op and the endpoints are the raw std types, so the alias resolves the same way regardless of feature configuration.

Structs§

Mutex
A mutual exclusion primitive useful for protecting shared data
MutexGuard
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
RwLock
A reader-writer lock
RwLockReadGuard
RAII structure used to release the shared read access of a lock when dropped.
RwLockWriteGuard
RAII structure used to release the exclusive write access of a lock when dropped.