chsvlib
chsv helper source code

◆ chsv_mtx_unlock()

int Chusov::ExecutionControl::chsv_mtx_unlock ( chsv_mtx_t mtx)
noexcept

Unlocks the specified mutex.

Parameters
[in]mtxis a pointer to a mutex to be released.
Returns
On success the function returns chsv_thrd_success. On failure chsv_thrd_error is returned and errno code is set.

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