nstd_timed_mutex_drop

Function nstd_timed_mutex_drop 

Source
pub unsafe extern "C" fn nstd_timed_mutex_drop(
    mutex: NSTDTimedMutex<'_>,
    callback: unsafe extern "C" fn(NSTDAnyMut),
)
Available on crate feature timed_mutex only.
Expand description

Frees an instance of NSTDTimedMutex after invoking callback with the mutex’s data.

callback will not be called if the mutex is poisoned.

§Parameters:

  • NSTDTimedMutex mutex - The timed mutex to free.

  • void (*callback)(NSTDAnyMut) - The mutex data’s destructor.

§Safety

This operation makes a direct call on a C function pointer (callback).