Skip to main content

Module sync

Module sync 

Source

Modules§

thread
Native threads.

Structs§

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

Type Aliases§

AtomicBool
A boolean type which can be safely shared between threads.
AtomicI64
An integer type which can be safely shared between threads.
AtomicU8
An integer type which can be safely shared between threads.
AtomicU64
An integer type which can be safely shared between threads.
AtomicUsize
An integer type which can be safely shared between threads.