Expand description
A module containing lock_api
-based lock types that are or are not Send + Sync
depending on whether the threading
feature of this module is enabled.
Structs§
- Immutable
Mapped Mutex Guard - A mutex guard that has an exclusive lock, but only an immutable reference; useful if you
need to map a mutex guard with a function that returns an
&T
. Construct using theMapImmutable
trait. - Lazy
- A value which is initialized on the first access.
- Mapped
Thread Mutex Guard - Once
Cell - A cell which can be written to only once. It is not thread safe.
- RawMutex
- RawRw
Lock - RawThread
Id - RawThread
Mutex - A mutex type that knows when it would deadlock
- Thread
Mutex - Thread
Mutex Guard