Lines Matching defs:timer
77 nsTimerImpl *timer = NS_STATIC_CAST(nsTimerImpl *, mTimers[n]);
78 NS_RELEASE(timer);
173 nsTimerImpl *timer;
175 timer = NS_STATIC_CAST(nsTimerImpl*, mTimers[i]);
176 RemoveTimerInternal(timer);
253 nsTimerImpl *timer = nsnull;
256 timer = NS_STATIC_CAST(nsTimerImpl*, mTimers[0]);
258 if (!TIMER_LESS_THAN(now, timer->mTimeout + mTimeoutAdjustment)) {
266 NS_ADDREF(timer);
267 RemoveTimerInternal(timer);
276 (now >= timer->mTimeout)
277 ? PR_IntervalToMilliseconds(now - timer->mTimeout)
278 : -(PRInt32)PR_IntervalToMilliseconds(timer->mTimeout-now))
284 // release of the timer so that we don't end up releasing the timer
286 timer->PostTimerEvent();
287 timer = nsnull;
300 timer = NS_STATIC_CAST(nsTimerImpl *, mTimers[0]);
302 PRIntervalTime timeout = timer->mTimeout + mTimeoutAdjustment;
304 // Don't wait at all (even for PR_INTERVAL_NO_WAIT) if the next timer
335 // Add the timer to our list.
340 // Awaken the timer thread.
359 // Awaken the timer thread.
370 // Remove the timer from our array. Tell callers that aTimer was not found
380 // Awaken the timer thread.
394 nsTimerImpl *timer = NS_STATIC_CAST(nsTimerImpl *, mTimers[i]);
405 if (TIMER_LESS_THAN(now, timer->mTimeout) &&
406 TIMER_LESS_THAN(aTimer->mTimeout, timer->mTimeout)) {
438 nsTimerImpl *timer = NS_STATIC_CAST(nsTimerImpl*, mTimers[i]);
441 timer->GetDelay(&delay);
442 timer->SetDelay(delay);