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

Function unlock

src/tinythread/tinythread.h:224–232  ·  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

222 /// If any threads are waiting for the lock on this mutex, one of them will
223 /// be unblocked.
224 inline void unlock()
225 {
226#if defined(_TTHREAD_WIN32_)
227 mAlreadyLocked = false;
228 LeaveCriticalSection(&mHandle);
229#else
230 pthread_mutex_unlock(&mHandle);
231#endif
232 }
233
234 _TTHREAD_DISABLE_ASSIGNMENT(mutex)
235

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected