Function nstd_sys::mutex::nstd_mutex_new

source ·
#[no_mangle]
pub extern "C" fn nstd_mutex_new(
    data: NSTDHeapPtr<'_>
) -> NSTDMutex<'_>
Available on crate feature nstd_mutex only.
Expand description

Creates a new mutual exclusion primitive.

Parameters:

  • NSTDHeapPtr data - The data to protect.

Returns

NSTDMutex mutex - The new mutex protecting data.