pub const fn const_reentrant_mutex<T>(
    val: T
) -> ReentrantMutex<RawMutex, RawThreadId, 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.