Expand description
Synchronization primitive implementation.
Modules§
Macros§
- thread_
local 🔒 - Declare a new thread local storage key of type
std::thread::LocalKey.
Structs§
- Arc 🔒
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Mutex 🔒
- A mutual exclusion primitive useful for protecting shared data
- Mutex
Guard 🔒 - An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
Traits§
- WithMut 🔒