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;
void notify()
Awakens any thread waiting for event changes.
virtual SocketHandle * socket_handle()=0
Base class for all classes that generate network events.
Definition: network_condition_variable.h:14
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
Definition: Application/application.h:35
Condition variable that also awaken on network events.
Definition: network_condition_variable.h:23
NetworkConditionVariable()