| 93 | |
| 94 | #if defined(_TTHREAD_WIN32_) |
| 95 | void 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_) |
no outgoing calls
no test coverage detected