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()
509 LocTimerDelegate* timer = (LocTimerDelegate*)(&rankable); in ranks() local
510 if (timer) { in ranks()
513 rank = timer->mFutureTime.tv_sec - mFutureTime.tv_sec; in ranks()
517 rank = (int)(timer->mFutureTime.tv_nsec - mFutureTime.tv_nsec); in ranks()
580 LocTimerDelegate* timer = mTimer; in stop() local
582 if (timer) { in stop()
583 timer->destroyLocked(); in stop()
679 LocTimerTest* timer = dynamic_cast<LocTimerTest*>(&rankable); in ranks() local
680 return timer->mTimeOut - mTimeOut; in ranks()
709 LocTimerTest* timer = new LocTimerTest(r); in main() local
711 if (!timer->stop()) { in main()
717 delete timer; in main()
721 if (!timer->start(r, false)) { in main()
727 timerArray[r] = timer; in main()