| 40 | } |
| 41 | |
| 42 | bool |
| 43 | wait() |
| 44 | { |
| 45 | std::unique_lock<std::mutex> lock { sMutex }; |
| 46 | if (mWriteVector.empty() && !sPendingWake) { |
| 47 | sConditionVariable.wait(lock); |
| 48 | } |
| 49 | |
| 50 | sPendingWake = false; |
| 51 | |
| 52 | return !mWriteVector.empty(); |
| 53 | } |
| 54 | |
| 55 | void |
| 56 | wake() |
no test coverage detected