chsvlib
chsv helper source code

◆ chsv_mtx_destroy()

void Chusov::ExecutionControl::chsv_mtx_destroy ( chsv_mtx_t mtx)
noexcept

Closes a mutex and releases any used resources.

Parameters
[in]mtxA pointer to a mutex to be closed.
Returns
The function returns no value.

The destroyed mutex must not been owned by any thread. The function behaviour over locked mutexes is undefined.

The function implements a behaviour of the mtx_destroy function defined in the ISO/IEC 9899:2011 (aka C11) standard.

See also
chsv_mtx_init;
chsv_mtx_lock;
chsv_mtx_unlock.