22 primaryEngine(nullptr),
38 if (requested_delay < 0)
39 switch (requested_delay) {
42 debugs(1, 9,
"Engine " << engine <<
" is idle.");
91 bool sawActivity =
false;
97 if (!waitingEngine && !
engines.empty())
102 typedef engine_vector::iterator EVI;
104 if (*i != waitingEngine)
112 }
while (sawActivity);
114 if (waitingEngine !=
nullptr)
145 return dispatchedSome;
151 for (engine_vector::iterator i =
engines.begin();
158 fatal(
"EventLoop::setPrimaryEngine: No such engine!.");
#define EVENT_LOOP_TIMEOUT
void error(char *format,...)
static AsyncCallQueue & Instance()
virtual int checkEvents(int timeout)=0
void checkEngine(AsyncEngine *engine, bool const primary)
Time::Engine * timeService
static EventLoop * Running
AsyncEngine * primaryEngine
void setTimeService(Time::Engine *)
void registerEngine(AsyncEngine *engine)
void setPrimaryEngine(AsyncEngine *engine)
event class for doing synthetic time etc
#define debugs(SECTION, LEVEL, CONTENT)
void fatal(const char *message)
void fatal_dump(const char *message)