28 return uint32_t(
timers_.size());
33 TTimerVector::const_iterator iter = std::find(
timers_.begin(),
timers_.end(), timer);
54 TTimerVector::iterator iter = std::find(
timers_.begin(),
timers_.end(), timer);
70 TTimerVector::iterator iter;
73 const uint64_t next = (*iter)->getNext();
74 smallest = std::min(next, smallest);
82 TTimerVector::iterator iter;
83 bool anyProcessed =
false;
103 timer_proc(task, time - start);
107 uint64_t numCalls = (next - start) / interval;
109 next = start + numCalls * interval;
119 while (
timers_.empty() ==
false) {
void(*)(GHOST_ITimerTask *task, uint64_t time) GHOST_TimerProcPtr
unsigned long long int uint64_t
bool fireTimers(uint64_t time)
GHOST_TSuccess removeTimer(GHOST_TimerTask *timer)
bool fireTimer(uint64_t time, GHOST_TimerTask *task)
bool getTimerFound(GHOST_TimerTask *timer)
GHOST_TSuccess addTimer(GHOST_TimerTask *timer)
uint64_t getInterval() const
GHOST_TimerProcPtr getTimerProc() const override
uint64_t getStart() const
void setNext(uint64_t next)