| 107 | |
| 108 | #if defined(_TTHREAD_WIN32_) |
| 109 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected