/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Returns null if a GC or GC request is already in progress.
RefPtr<MayGCPromise> MayGCNow();
// Regardless of how a GC is started we get informed via these. void StartedGC(); void DoneGC();
// Returns nullptr if this is the parent process or the IdleSchedulerChild has // already been destroyed, eg if IPC is shutting down. static IdleSchedulerChild* GetMainThreadIdleScheduler();
private:
~IdleSchedulerChild();
friendclass BackgroundChildImpl;
// See IdleScheduleParent::sActiveChildCounter
RefPtr<SharedMemory> mActiveCounter = MakeRefPtr<SharedMemory>();
IdlePeriodState* mIdlePeriodState = nullptr;
uint32_t mChildId = 0;
// These fields replicate those in IdleSchedulerParent. Tracking them here // ensures we don't send confusing information to the parent, while // nsJSEnvironment is free to tell us about any GCs. bool mIsRequestingGC = false; bool mIsDoingGC = false;
};
} // namespace ipc
} // namespace mozilla
#endif// mozilla_ipc_IdleSchedulerChild_h__
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.