Module nonpoison
🔬This is a nightly-only experimental API. (sync_nonpoison #134645)
Non-poisoning synchronous locks.
The difference from the locks in the poison module is that the locks in this module will not become poisoned when a thread panics while holding a guard.
-
CondvarExperimental
- A Condition Variable
-
MappedMutexGuardExperimental
- An RAII mutex guard returned by
MutexGuard::map, which can point to a subfield of the protected data. When this structure is dropped (falls out of scope), the lock will be unlocked.
-
MappedRwLockReadGuardExperimental
- RAII structure used to release the shared read access of a lock when dropped, which can point to a subfield of the protected data.
-
MappedRwLockWriteGuardExperimental
- RAII structure used to release the exclusive write access of a lock when dropped, which can point to a subfield of the protected data.
-
MutexExperimental
- A mutual exclusion primitive useful for protecting shared data that does not keep track of lock poisoning.
-
MutexGuardExperimental
- An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
-
RwLockExperimental
- A reader-writer lock that does not keep track of lock poisoning.
-
RwLockReadGuardExperimental
- RAII structure used to release the shared read access of a lock when dropped.
-
RwLockWriteGuardExperimental
- RAII structure used to release the exclusive write access of a lock when dropped.
-
WouldBlockExperimental
- A lock could not be acquired at this time because the operation would otherwise block.
-
TryLockResultExperimental
- A type alias for the result of a nonblocking locking method.