MCPcopy Create free account
hub / github.com/cinience/RedisStudio / wait

Method wait

RedisStudio/Base/Event.cpp:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20void 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
32bool Event::wait(long milliseconds)

Callers 2

BackgroundWorkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected