Module cubecl_common::stub
source · Expand description
Stub module contains types for stubs for non-std environments and for std environments.
Structs§
- A mutual exclusion primitive useful for protecting shared data
- 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 - A unique identifier for a running thread.