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 <cassert>

Namespaces

namespace  ROOT

Macros

#define R__MAYBE_ASSERT_WITH_LOCAL_LOCK(where, msg, what)
#define R__MAYBE_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:5

Definition at line 48 of file TReentrantRWLock.cxx.

◆ R__MAYBE_AssertReadCountLocIsFromCurrentThread

#define R__MAYBE_AssertReadCountLocIsFromCurrentThread ( READERSCOUNTLOC)
Value:
AssertReadCountLocIsFromCurrentThread(READERSCOUNTLOC)

Definition at line 46 of file TReentrantRWLock.cxx.