MuTeX GROUP
Introduction
MuTeX GROUP can be used to lock all mutexes at the same time.
Example
static MUTEX_0: = new;
static MUTEX_1: = new;
static MUTEX_2: = new;
let mutexes = vec!;
let mtxgroup = new;
let guard = mtxgroup.lock; // Locks all mutexes at the same time
for mutex in guard.iter
for mut mutex in guard.into_iter
Features
- Compliable with
no_std- requires
spincrate
- requires
License
Licensed under MIT license