Function nstd_sys::mutex::nstd_mutex_into_inner
source · #[no_mangle]
pub extern "C" fn nstd_mutex_into_inner(
mutex: NSTDMutex<'_>
) -> NSTDOptionalHeapPtr<'_>Available on crate feature
mutex only.Expand description
Consumes a mutex and returns the data it was protecting.
Parameters:
NSTDMutex mutex- The mutex to take ownership of.
Returns
NSTDOptionalHeapPtr data - Ownership of the mutex’s data, or an uninitialized “none” variant
if the mutex was poisoned.