1358476, add support for timeout when doing idle dispatch

Templates suck. I cannot make this work likely.
This commit is contained in:
win7-7 2024-04-27 22:23:07 +03:00 committed by wuggy
commit c4bf9a7b32
4 changed files with 498 additions and 48 deletions

View file

@ -1044,9 +1044,9 @@ nsThread::GetIdleEvent(nsIRunnable** aEvent, MutexAutoLock& aProofOfLock)
mIdleEvents.GetEvent(false, aEvent, aProofOfLock);
if (*aEvent) {
nsCOMPtr<nsIIdleRunnable> incrementalEvent(do_QueryInterface(*aEvent));
if (incrementalEvent) {
incrementalEvent->SetDeadline(idleDeadline);
nsCOMPtr<nsIIdleRunnable> idleEvent(do_QueryInterface(*aEvent));
if (idleEvent) {
idleEvent->SetDeadline(idleDeadline);
}
}
}