| 18 | |
| 19 | |
| 20 | void Event::wait() |
| 21 | { |
| 22 | switch (WaitForSingleObject(_event, INFINITE)) |
| 23 | { |
| 24 | case WAIT_OBJECT_0: |
| 25 | return; |
| 26 | default: |
| 27 | throw std::exception("wait for event failed"); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | |
| 32 | bool Event::wait(long milliseconds) |
no outgoing calls
no test coverage detected