|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <threads.h> | ||
int mtx_unlock(mtx_t*mutex); | (since C11) | |
Unlocks the mutex pointed to bymutex.
The behavior is undefined if the mutex is not locked by the calling thread.
This functionsynchronizes-with subsequentmtx_lock,mtx_trylock, ormtx_timedlock on the same mutex. All lock/unlock operations on any given mutex form a single total order (similar to the modification order of an atomic).
Contents |
| mutex | - | pointer to the mutex to unlock |
thrd_success if successful,thrd_error otherwise.
(C11) | blocks until locks a mutex (function)[edit] |
(C11) | blocks until locks a mutex or times out (function)[edit] |
(C11) | locks a mutex or returns without blocking if already locked (function)[edit] |
C++ documentation formutex::unlock | |
C++ documentation fortimed_mutex::unlock | |
C++ documentation forrecursive_mutex::unlock | |
C++ documentation forrecursive_timed_mutex::unlock | |