MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / unlock

Method unlock

src/tinythread/tinythread.h:308–315  ·  view source on GitHub ↗

Unlock the mutex. If any threads are waiting for the lock on this mutex, one of them will be unblocked.

Source from the content-addressed store, hash-verified

306 /// If any threads are waiting for the lock on this mutex, one of them will
307 /// be unblocked.
308 inline void unlock()
309 {
310#if defined(_TTHREAD_WIN32_)
311 LeaveCriticalSection(&mHandle);
312#else
313 pthread_mutex_unlock(&mHandle);
314#endif
315 }
316
317 _TTHREAD_DISABLE_ASSIGNMENT(recursive_mutex)
318

Callers 5

joinableMethod · 0.80
detachMethod · 0.80
~lock_guardMethod · 0.80
waitMethod · 0.80
readyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected