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

Method notify_one

src/tinythread/tinythread.cpp:95–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94#if defined(_TTHREAD_WIN32_)
95void condition_variable::notify_one()
96{
97 // Are there any waiters?
98 EnterCriticalSection(&mWaitersCountLock);
99 bool haveWaiters = (mWaitersCount > 0);
100 LeaveCriticalSection(&mWaitersCountLock);
101
102 // If we have any waiting threads, send them a signal
103 if(haveWaiters)
104 SetEvent(mEvents[_CONDITION_EVENT_ONE]);
105}
106#endif
107
108#if defined(_TTHREAD_WIN32_)

Callers 4

freeMethod · 0.45
onNewFrameMethod · 0.45
~AsyncPacketProcessorMethod · 0.45
processMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected