Bug 1678416 - Minor comment fixes r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D90901
This commit is contained in:
Steve Fink 2020-12-04 16:03:24 +00:00
Родитель 515d10f4bb
Коммит 6a927752ef
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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.