Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TReentrantRWLock.cxx File Reference
#include "TReentrantRWLock.hxx"
#include "ROOT/TSpinMutex.hxx"
#include "TMutex.h"
#include "TError.h"
#include <assert.h>
Include dependency graph for TReentrantRWLock.cxx:

Namespaces

namespace  ROOT
 This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
 

Macros

#define R__MAYBE_ASSERT_WITH_LOCAL_LOCK(where, msg, what)
 
#define R__MAYBE_AssertReadCountLocIsFromCurrentThread(READERSCOUNTLOC)    AssertReadCountLocIsFromCurrentThread(READERSCOUNTLOC)
 

Macro Definition Documentation

◆ R__MAYBE_ASSERT_WITH_LOCAL_LOCK

#define R__MAYBE_ASSERT_WITH_LOCAL_LOCK (   where,
  msg,
  what 
)
Value:
{ \
std::unique_lock<MutexT> lock(fMutex); \
auto local = fRecurseCounts.GetLocal(); \
if (!(what)) \
Error(where, "%s", msg); \
}
static const char * what
Definition stlLoader.cc:6

Definition at line 48 of file TReentrantRWLock.cxx.

◆ R__MAYBE_AssertReadCountLocIsFromCurrentThread

#define R__MAYBE_AssertReadCountLocIsFromCurrentThread (   READERSCOUNTLOC)     AssertReadCountLocIsFromCurrentThread(READERSCOUNTLOC)

Definition at line 46 of file TReentrantRWLock.cxx.