11 class NetworkConditionVariableImpl;
29 template<
typename Lock>
35 bool result = wait_impl(count, events, timeout);
50 bool wait_impl(
int count,
NetworkEvent **events,
int timeout);
52 std::shared_ptr<NetworkConditionVariableImpl> impl;
Base class for all classes that generate network events.
Definition: network_condition_variable.h:15
virtual SocketHandle * get_socket_handle()=0
void notify()
Awakens any thread waiting for event changes.
NetworkConditionVariable()
Condition variable that also awaken on network events.
Definition: network_condition_variable.h:24
bool wait(Lock &lock, int count, NetworkEvent **events, int timeout=-1)
Waits for event changes or until notify is called.
Definition: network_condition_variable.h:30