parking_lot

Function const_fair_mutex

source
pub const fn const_fair_mutex<T>(val: T) -> FairMutex<T>
Expand description

Creates a new fair mutex in an unlocked state ready for use.

This allows creating a fair mutex in a constant context on stable Rust.