Expand description
Stub module contains types for stubs for non-std environments and for std environments.
Structsยง
- Mutex
- A mutual exclusion primitive useful for protecting shared data
- RwLock
- A reader-writer lock which is exclusively locked for writing or shared for reading.
This reader-writer lock will block threads waiting for the lock to become available.
The lock can also be statically initialized or created via a RwLock::new
RwLock wrapper to make
spin::RwLock
API compatible withstd::sync::RwLock
to swap - Sync
Once Cell - A cell that provides lazy one-time initialization that implements Sync and Send.
- Thread
Id - A unique identifier for a running thread.