Expand description
Lock data with mutable access on a single-core
processor. The locking is provided by a
critical-section::Mutex.
§Example
use critical_section_lock_mut::LockMut;
static SHARED: LockMut<u8> = LockMut::new();
fn main() {
SHARED.init(3);
SHARED.with_lock(|u| *u += 1);Re-exports§
pub use critical_section;
Structs§
- LockMut
- This datatype provides a lock with interior mutability for the data inside.