46 for (
int i = 0;
i < w;
i++) {
66 std::mutex stateMutex;
A mini-server for performing network communication in the background.
void signal(bool after=true)
void signal()
Put the event in a signaled state.
void wait()
Wait for the event to be signaled.
void reset()
Put the event in a reset state.
Event(bool autoResetAfterWait=true)
Constructor.
virtual ~Event()
Destructor.
A class for thread synchronization and mutual exclusion.
void wait()
Decrement the counter, even if we must wait to do that.
void post()
Increment the counter.