Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/xpcom/tests/gtest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 692 B image not shown  

Quelle  TestRecursiveMutex.cpp

  Sprache: C
 

/* 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/. */


#include "nsThreadUtils.h"
#include "mozilla/RecursiveMutex.h"
#include "gtest/gtest.h"

using mozilla::RecursiveMutex;
using mozilla::RecursiveMutexAutoLock;

// Basic test to make sure the underlying implementation of RecursiveMutex is,
// well, actually recursively acquirable.

TEST(RecursiveMutex, SmokeTest)
MOZ_NO_THREAD_SAFETY_ANALYSIS {
  RecursiveMutex mutex("testing mutex");

  RecursiveMutexAutoLock lock1(mutex);
  RecursiveMutexAutoLock lock2(mutex);

  //...and done.
}

Messung V0.5 in Prozent
C=90 H=94 G=91

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.