32 while(!m_eventList.empty())
35 while(!m_scheduledEventList.empty()) {
38 m_scheduledEventList.pop();
46 for(
int count = 0, max = m_scheduledEventList.size(); count < max && !m_scheduledEventList.empty(); ++count) {
50 m_scheduledEventList.pop();
54 m_scheduledEventList.push(scheduledEvent);
59 m_pollEventsSize = m_eventList.size();
61 while(m_pollEventsSize > 0) {
63 static Timer reportTimer;
65 g_logger.
error(
"ATTENTION the event list is not getting empty, this could be caused by some bad code");
71 for(
int i=0;i<m_pollEventsSize;++i) {
72 EventPtr event = m_eventList.front();
73 m_eventList.pop_front();
76 m_pollEventsSize = m_eventList.size();
89 m_scheduledEventList.push(scheduledEvent);
90 return scheduledEvent;
100 m_scheduledEventList.push(scheduledEvent);
101 return scheduledEvent;
112 m_eventList.push_front(event);
116 m_eventList.push_back(event);