fire() sets signals the event, and unblocks any calls to wait().
| 39 | |
| 40 | // fire() sets signals the event, and unblocks any calls to wait(). |
| 41 | inline void fire() { |
| 42 | std::unique_lock<std::mutex> lock(mutex); |
| 43 | fired = true; |
| 44 | cv.notify_all(); |
| 45 | } |
| 46 | |
| 47 | private: |
| 48 | std::mutex mutex; |
no outgoing calls
no test coverage detected