зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1678416 - Minor comment fixes r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D90901
This commit is contained in:
Родитель
515d10f4bb
Коммит
6a927752ef
|
@ -84,6 +84,7 @@ void IdleTaskRunner::SetBudget(int64_t aBudget) {
|
|||
|
||||
void IdleTaskRunner::SetTimer(uint32_t aDelay, nsIEventTarget* aTarget) {
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_ASSERT(aTarget->IsOnCurrentThread());
|
||||
// aTarget is always the main thread event target provided from
|
||||
// NS_DispatchToCurrentThreadQueue(). We ignore aTarget here to ensure that
|
||||
// CollectorRunner always run specifically the main thread.
|
||||
|
|
|
@ -14,11 +14,10 @@
|
|||
|
||||
namespace mozilla {
|
||||
|
||||
// A general purpose repeating callback runner (it can be configured
|
||||
// to a one-time runner, too.) If it is running repeatedly,
|
||||
// one has to either explicitly Cancel() the runner or have
|
||||
// MayContinueProcessing() callback return false to completely remove
|
||||
// the runner.
|
||||
// A general purpose repeating callback runner (it can be configured to a
|
||||
// one-time runner, too.) If it is running repeatedly, one has to either
|
||||
// explicitly Cancel() the runner or have MayStopProcessing() callback return
|
||||
// true to completely remove the runner.
|
||||
class IdleTaskRunner final : public CancelableIdleRunnable {
|
||||
public:
|
||||
// Return true if some meaningful work was done.
|
||||
|
|
Загрузка…
Ссылка в новой задаче