Exemplo n.º 1
0
void SingleThreadedEventLoop::handleEvents() {
    {
        std::lock_guard<std::mutex> lock(eventAvailableMutex_);
        eventAvailable_ = false;
    }
    handleNextEvents();
}
Exemplo n.º 2
0
void BoostASIOEventLoop::handleASIOEvent() {
    {
        std::unique_lock<std::recursive_mutex> lock(isEventInASIOEventLoopMutex_);
        isEventInASIOEventLoop_ = false;
    }
    handleNextEvents();
}
Exemplo n.º 3
0
void BoostASIOEventLoop::handleASIOEvent() {
	{
		boost::recursive_mutex::scoped_lock lock(isEventInASIOEventLoopMutex_);
		isEventInASIOEventLoop_ = false;
	}
	handleNextEvents();
}
Exemplo n.º 4
0
void DummyEventLoop::processEvents() {
	while(hasEvents()) {
		hasEvents_ = false;
		handleNextEvents();
	}
}
Exemplo n.º 5
0
void SimpleEventLoop::runOnce() {
	handleNextEvents();
}