Go to the documentation of this file.
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 !=
NULL)
145 return dispatchedSome;
151 for (engine_vector::iterator i =
engines.begin();
158 fatal(
"EventLoop::setPrimaryEngine: No such engine!.");
event class for doing synthetic time etc
void fatal(const char *message)
static EventLoop * Running
AsyncEngine * primaryEngine
void error(char *format,...)
static AsyncCallQueue & Instance()
void fatal_dump(const char *message)
void setTimeService(Time::Engine *)
#define EVENT_LOOP_TIMEOUT
void checkEngine(AsyncEngine *engine, bool const primary)
Time::Engine * timeService
void setPrimaryEngine(AsyncEngine *engine)
virtual int checkEvents(int timeout)=0
void registerEngine(AsyncEngine *engine)
#define debugs(SECTION, LEVEL, CONTENT)