Lines Matching refs:timer

113     LocTimerDelegate* popIfOutRanks(LocTimerDelegate& timer);
124 void add(LocTimerDelegate& timer);
126 void remove(LocTimerDelegate& timer);
311 void LocTimerContainer::add(LocTimerDelegate& timer) { in add() argument
316 inline MsgTimerPush(LocTimerContainer& container, LocTimerDelegate& timer) : in add()
317 LocMsg(), mTimerContainer(&container), mTimer(&timer) {} in add()
325 mMsgTask->sendMsg(new MsgTimerPush(*this, timer)); in add()
329 void LocTimerContainer::remove(LocTimerDelegate& timer) { in remove() argument
333 inline MsgTimerRemove(LocTimerContainer& container, LocTimerDelegate& timer) : in remove()
334 LocMsg(), mTimerContainer(&container), mTimer(&timer) {} in remove()
350 mMsgTask->sendMsg(new MsgTimerRemove(*this, timer)); in remove()
368 for (LocTimerDelegate* timer = (LocTimerDelegate*)mTimerContainer->pop(); in expire() local
369 NULL != timer; in expire()
370 timer = mTimerContainer->popIfOutRanks(timerOfNow)) { in expire()
372 timer->expire(); in expire()
384 LocTimerDelegate* LocTimerContainer::popIfOutRanks(LocTimerDelegate& timer) { in popIfOutRanks() argument
386 if (mTree && !timer.outRanks(*peek())) { in popIfOutRanks()
506 LocTimerDelegate* timer = (LocTimerDelegate*)(&rankable); in ranks() local
507 if (timer) { in ranks()
510 rank = timer->mFutureTime.tv_sec - mFutureTime.tv_sec; in ranks()
567 LocTimerDelegate* timer = mTimer; in stop() local
569 if (timer) { in stop()
570 timer->destroyLocked(); in stop()
666 LocTimerTest* timer = dynamic_cast<LocTimerTest*>(&rankable); in ranks() local
667 return timer->mTimeOut - mTimeOut; in ranks()
696 LocTimerTest* timer = new LocTimerTest(r); in main() local
698 if (!timer->stop()) { in main()
704 delete timer; in main()
708 if (!timer->start(r, false)) { in main()
714 timerArray[r] = timer; in main()