The nng_mtx_unlock()
relinquishes ownership of the mutex mtx that
was previously acquired via nng_mtx_lock()
.
Important
|
A mutex can only be unlocked by the thread that locked it. Attempting to unlock a mutex that is not owned by the caller will result in undefined behavior. |