Lines Matching refs:timer

112     LocTimerDelegate* popIfOutRanks(LocTimerDelegate& timer);
123 void add(LocTimerDelegate& timer);
125 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()
385 LocTimerDelegate* LocTimerContainer::popIfOutRanks(LocTimerDelegate& timer) { in popIfOutRanks() argument
387 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()
568 LocTimerDelegate* timer = mTimer; in stop() local
570 if (timer) { in stop()
571 timer->destroyLocked(); in stop()
667 LocTimerTest* timer = dynamic_cast<LocTimerTest*>(&rankable); in ranks() local
668 return timer->mTimeOut - mTimeOut; in ranks()
697 LocTimerTest* timer = new LocTimerTest(r); in main() local
699 if (!timer->stop()) { in main()
705 delete timer; in main()
709 if (!timer->start(r, false)) { in main()
715 timerArray[r] = timer; in main()