Lines Matching refs:timer

114     LocTimerDelegate* popIfOutRanks(LocTimerDelegate& timer);
125 void add(LocTimerDelegate& timer);
127 void remove(LocTimerDelegate& timer);
313 void LocTimerContainer::add(LocTimerDelegate& timer) { in add() argument
318 inline MsgTimerPush(LocTimerContainer& container, LocTimerDelegate& timer) : in add()
319 LocMsg(), mTimerContainer(&container), mTimer(&timer) {} in add()
327 mMsgTask->sendMsg(new MsgTimerPush(*this, timer)); in add()
331 void LocTimerContainer::remove(LocTimerDelegate& timer) { in remove() argument
335 inline MsgTimerRemove(LocTimerContainer& container, LocTimerDelegate& timer) : in remove()
336 LocMsg(), mTimerContainer(&container), mTimer(&timer) {} in remove()
352 mMsgTask->sendMsg(new MsgTimerRemove(*this, timer)); in remove()
370 for (LocTimerDelegate* timer = (LocTimerDelegate*)mTimerContainer->pop(); in expire() local
371 NULL != timer; in expire()
372 timer = mTimerContainer->popIfOutRanks(timerOfNow)) { in expire()
374 timer->expire(); in expire()
387 LocTimerDelegate* LocTimerContainer::popIfOutRanks(LocTimerDelegate& timer) { in popIfOutRanks() argument
389 if (mTree && !timer.outRanks(*peek())) { in popIfOutRanks()
511 LocTimerDelegate* timer = (LocTimerDelegate*)(&rankable); in ranks() local
512 if (timer) { in ranks()
515 rank = timer->mFutureTime.tv_sec - mFutureTime.tv_sec; in ranks()
519 rank = (int)(timer->mFutureTime.tv_nsec - mFutureTime.tv_nsec); in ranks()
582 LocTimerDelegate* timer = mTimer; in stop() local
584 if (timer) { in stop()
585 timer->destroyLocked(); in stop()
681 LocTimerTest* timer = dynamic_cast<LocTimerTest*>(&rankable); in ranks() local
682 return timer->mTimeOut - mTimeOut; in ranks()
711 LocTimerTest* timer = new LocTimerTest(r); in main() local
713 if (!timer->stop()) { in main()
719 delete timer; in main()
723 if (!timer->start(r, false)) { in main()
729 timerArray[r] = timer; in main()