Wait() blocks until the event is fired.
| 43 | public: |
| 44 | // Wait() blocks until the event is fired. |
| 45 | void Wait() |
| 46 | { |
| 47 | std::unique_lock<std::mutex> lock(Mutex); |
| 48 | Cv.wait(lock, [&] { return Fired; }); |
| 49 | } |
| 50 | |
| 51 | // Fire() sets signals the event, and unblocks any calls to Wait(). |
| 52 | void Fire() |
no test coverage detected