mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
1358476, add support for timeout when doing idle dispatch
Templates suck. I cannot make this work likely.
This commit is contained in:
parent
5499c5f9a3
commit
c4bf9a7b32
4 changed files with 498 additions and 48 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue