/* -*- 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/. */
/* This header file contains declarations for helper classes that are to be used exclusively by IOInterposer and its observers. This header
file is not to be used by anything else and MUST NOT be exported! */
#include <prcvar.h> #include <prlock.h>
#include"mozilla/ThreadSafety.h"
namespace mozilla { namespace IOInterposer {
/** * The following classes are simple wrappers for PRLock and PRCondVar. * IOInterposer and friends use these instead of Mozilla::Mutex et al because * of the fact that IOInterposer is permitted to run until the process * terminates; we can't use anything that plugs into leak checkers or deadlock * detectors because IOInterposer will outlive those and generate false * positives.
*/
class MOZ_CAPABILITY("monitor") Monitor { public:
Monitor() : mLock(PR_NewLock()), mCondVar(PR_NewCondVar(mLock)) {}
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.