Lines Matching refs:timer
112 LocTimerDelegate* popIfOutRanks(LocTimerDelegate& timer);
123 void add(LocTimerDelegate& timer);
125 void remove(LocTimerDelegate& timer);
310 void LocTimerContainer::add(LocTimerDelegate& timer) { in add() argument
315 inline MsgTimerPush(LocTimerContainer& container, LocTimerDelegate& timer) : in add()
316 LocMsg(), mTimerContainer(&container), mTimer(&timer) {} in add()
324 mMsgTask->sendMsg(new MsgTimerPush(*this, timer)); in add()
328 void LocTimerContainer::remove(LocTimerDelegate& timer) { in remove() argument
332 inline MsgTimerRemove(LocTimerContainer& container, LocTimerDelegate& timer) : in remove()
333 LocMsg(), mTimerContainer(&container), mTimer(&timer) {} in remove()
349 mMsgTask->sendMsg(new MsgTimerRemove(*this, timer)); in remove()
367 for (LocTimerDelegate* timer = (LocTimerDelegate*)mTimerContainer->pop(); in expire() local
368 NULL != timer; in expire()
369 timer = mTimerContainer->popIfOutRanks(timerOfNow)) { in expire()
371 timer->expire(); in expire()
383 LocTimerDelegate* LocTimerContainer::popIfOutRanks(LocTimerDelegate& timer) { in popIfOutRanks() argument
385 if (mTree && !timer.outRanks(*peek())) { in popIfOutRanks()
507 LocTimerDelegate* timer = (LocTimerDelegate*)(&rankable); in ranks() local
508 if (timer) { in ranks()
511 rank = timer->mFutureTime.tv_sec - mFutureTime.tv_sec; in ranks()
573 LocTimerDelegate* timer = mTimer; in stop() local
575 if (timer) { in stop()
576 timer->destroyLocked(); in stop()
672 LocTimerTest* timer = dynamic_cast<LocTimerTest*>(&rankable); in ranks() local
673 return timer->mTimeOut - mTimeOut; in ranks()
702 LocTimerTest* timer = new LocTimerTest(r); in main() local
704 if (!timer->stop()) { in main()
710 delete timer; in main()
714 if (!timer->start(r, false)) { in main()
720 timerArray[r] = timer; in main()