void SingleThreadedEventLoop::handleEvents() { { std::lock_guard<std::mutex> lock(eventAvailableMutex_); eventAvailable_ = false; } handleNextEvents(); }
void BoostASIOEventLoop::handleASIOEvent() { { std::unique_lock<std::recursive_mutex> lock(isEventInASIOEventLoopMutex_); isEventInASIOEventLoop_ = false; } handleNextEvents(); }
void BoostASIOEventLoop::handleASIOEvent() { { boost::recursive_mutex::scoped_lock lock(isEventInASIOEventLoopMutex_); isEventInASIOEventLoop_ = false; } handleNextEvents(); }
void DummyEventLoop::processEvents() { while(hasEvents()) { hasEvents_ = false; handleNextEvents(); } }
void SimpleEventLoop::runOnce() { handleNextEvents(); }