/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// This class is a singleton that tracks various callback threads and makes // sure they are registered or unregistered to the profiler safely and // consistently. // // Register and Unregister are fairly expensive and shouldn't be used in a hot // path. class CallbackThreadRegistry final { public:
CallbackThreadRegistry();
// It would be nice to be able to assert that all threads have been // unregistered, but we can't: it's legal to suspend an audio stream, so // that the callback isn't called, and then immediately destroy it.
~CallbackThreadRegistry() = default;
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.