Module no_std_compat2::sync
source · Available on non-crate feature
std only.Modules
- Atomic types
Structs
- ExclusiveExperimental
Exclusiveprovides only mutable access, also referred to as exclusive access to the underlying value. It provides no immutable, or shared access to the underlying value. - A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- MutexGuard
allocandcompat_syncA generic guard that will protect some data access and uses either a ticket lock or a normal spin mutex. - RwLockReadGuard
allocandcompat_syncA guard that provides immutable data access.
Type Definitions
- Mutex
allocandcompat_syncandmutexA primitive that synchronizes the execution of multiple threads. Seemutex::Mutexfor documentation. - Once
allocandcompat_syncandonceA primitive that provides lazy one-time initialization. Seeonce::Oncefor documentation. - RwLock
allocandcompat_syncandrwlockA lock that provides data access to either one writer or many readers. Seerwlock::RwLockfor documentation. - RwLockWriteGuard
allocandcompat_syncandrwlockA guard that provides mutable data access. Seerwlock::RwLockWriteGuardfor documentation.