зеркало из https://github.com/mozilla/gecko-dev.git
3ae961a2da
We could try to move the EnforcePendingTaskGuarantee() bit into PeekIdleDeadline, but then we'd need to check HasReadyEvent() on mDeferredTimersQueue and mIdleQueue before we possibly unlock the mutex under PeekIdleDeadline, and it's not clear that that state cannot change once the mutex is unlocked... The EnsureIsActive() call at the end of GetIdleDeadlineInternal in the !aIsPeek case only makes sense if there are in fact idle tasks available to run when GetDeadlineForIdleTask is called, because otherwise it would incorrectly set us active when we are not running any tasks. Differential Revision: https://phabricator.services.mozilla.com/D49696 --HG-- rename : xpcom/threads/PrioritizedEventQueue.cpp => xpcom/threads/IdlePeriodState.cpp rename : xpcom/threads/PrioritizedEventQueue.h => xpcom/threads/IdlePeriodState.h extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
components | ||
doc | ||
ds | ||
glue | ||
idl-parser | ||
io | ||
libxpt/xptcall | ||
reflect | ||
rust | ||
string | ||
system | ||
tests | ||
threads | ||
windbgdlg | ||
xpidl | ||
moz.build | ||
xpcom-config.h.in | ||
xpcom-private.h.in |