MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / wait

Method wait

3rd/asio-1.24.0/include/asio/detail/std_event.hpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 // Wait for the event to become signalled.
113 template <typename Lock>
114 void wait(Lock& lock)
115 {
116 ASIO_ASSERT(lock.locked());
117 unique_lock_adapter u_lock(lock);
118 while ((state_ & 1) == 0)
119 {
120 waiter w(state_);
121 cond_.wait(u_lock.unique_lock_);
122 }
123 }
124
125 // Timed wait for the event to become signalled.
126 template <typename Lock>

Callers 7

WaitMethod · 0.45
WaitForNotificationFunction · 0.45
waitFunction · 0.45
waitFunction · 0.45
shutdownMethod · 0.45
do_executeMethod · 0.45
execute_and_waitMethod · 0.45

Calls 1

lockedMethod · 0.45

Tested by 2

WaitMethod · 0.36
WaitForNotificationFunction · 0.36