/* -*- 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/. */
/** * Similarly to OffTheBooksMutex, OffTheBooksCondvar is identical to CondVar, * except that OffTheBooksCondVar doesn't include leak checking. Sometimes * you want to intentionally "leak" a CondVar until shutdown; in these cases, * OffTheBooksCondVar is for you.
*/ class OffTheBooksCondVar : BlockingResourceBase { public: /** * OffTheBooksCondVar * * The CALLER owns |aLock|. * * @param aLock A Mutex to associate with this condition variable. * @param aName A name which can reference this monitor * @returns If failure, nullptr. * If success, a valid Monitor* which must be destroyed * by Monitor::DestroyMonitor()
**/
OffTheBooksCondVar(OffTheBooksMutex& aLock, constchar* aName)
: BlockingResourceBase(aName, eCondVar), mLock(&aLock) {}
/** * ~OffTheBooksCondVar * Clean up after this OffTheBooksCondVar, but NOT its associated Mutex.
**/
~OffTheBooksCondVar() = 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 ist noch experimentell.