parking_lot

Function const_reentrant_mutex

Source
pub const fn const_reentrant_mutex<T>(val: T) -> ReentrantMutex<T>
Expand description

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

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