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

Method notify_all

src/tinythread/tinythread.cpp:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108#if defined(_TTHREAD_WIN32_)
109void condition_variable::notify_all()
110{
111 // Are there any waiters?
112 EnterCriticalSection(&mWaitersCountLock);
113 bool haveWaiters = (mWaitersCount > 0);
114 LeaveCriticalSection(&mWaitersCountLock);
115
116 // If we have any waiting threads, send them a signal
117 if(haveWaiters)
118 SetEvent(mEvents[_CONDITION_EVENT_ALL]);
119}
120#endif
121
122

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected