33 TTimerVector::const_iterator iter = std::find(
m_timers.begin(),
m_timers.end(), timer);
54 TTimerVector::iterator iter = std::find(
m_timers.begin(),
m_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 timerProc(task, time - start);
107 uint64_t numCalls = (next - start) / interval;
109 next = start + numCalls * interval;
void(*) GHOST_TimerProcPtr(struct GHOST_TimerTaskHandle__ *task, uint64_t time)
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)