re-landing 129953

This commit is contained in:
pavlov@netscape.com
2002-04-11 07:55:53 +00:00
parent 6d34eaf5f0
commit 394cebcd56
7 changed files with 203 additions and 28 deletions

View File

@@ -218,17 +218,17 @@ NS_IMETHODIMP TimerThread::Run()
}
#endif
// We are going to let the call to Fire here handle the release of the
// We are going to let the call to PostTimerEvent here handle the release of the
// timer so that we don't end up releasing the timer on the TimerThread
// instead of on the thread it targets.
timer->Fire();
timer->PostTimerEvent();
timer = nsnull;
lock.lock();
if (!mProcessing)
break;
// Update now, as Fire plus the locking may have taken a tick or two,
// Update now, as PostTimerEvent plus the locking may have taken a tick or two,
// and we may goto next below.
now = PR_IntervalNow();
}