Struct std::sync::StaticMutex [] [src]

pub struct StaticMutex {
    lock: AtomicBool,
}

Fields

lock

Methods

impl StaticMutex

const fn new() -> Self

Create a new mutex with value value.

fn lock(&'static self) -> Result<MutexGuard<()>, ()>

Lock the mutex

unsafe fn destroy(&'static self)