Logo ROOT  
Reference Guide
TVirtualMutex.h File Reference
#include "Rtypes.h"
Include dependency graph for TVirtualMutex.h:
This graph shows which files directly or indirectly include this file:

Classes

class  TLockGuard
 
class  TVirtualMutex
 

Macros

#define R__LOCKGUARD(mutex)   (void)(mutex); { }
 
#define R__LOCKGUARD2(mutex)   (void)(mutex); { }
 
#define R__LOCKGUARD_IMT(mutex)   R__LOCKGUARD(ROOT::Internal::IsParBranchProcessingEnabled() ? mutex : nullptr)
 
#define R__LOCKGUARD_IMT2(mutex)
 
#define R__LOCKGUARD_NAMED(name, mutex)   (void)(mutex); { }
 
#define R__LOCKGUARD_UNLOCK(name)   { }
 

Variables

R__EXTERN TVirtualMutexgGlobalMutex
 

Macro Definition Documentation

◆ R__LOCKGUARD

#define R__LOCKGUARD (   mutex)    (void)(mutex); { }

Definition at line 104 of file TVirtualMutex.h.

◆ R__LOCKGUARD2

#define R__LOCKGUARD2 (   mutex)    (void)(mutex); { }

Definition at line 106 of file TVirtualMutex.h.

◆ R__LOCKGUARD_IMT

#define R__LOCKGUARD_IMT (   mutex)    R__LOCKGUARD(ROOT::Internal::IsParBranchProcessingEnabled() ? mutex : nullptr)

Definition at line 111 of file TVirtualMutex.h.

◆ R__LOCKGUARD_IMT2

#define R__LOCKGUARD_IMT2 (   mutex)
Value:
gGlobalMutex->Lock(); \
if (!mutex) \
mutex = gGlobalMutex->Factory(kTRUE); \
gGlobalMutex->UnLock(); \
} \
R__LOCKGUARD_IMT(mutex)

Definition at line 112 of file TVirtualMutex.h.

◆ R__LOCKGUARD_NAMED

#define R__LOCKGUARD_NAMED (   name,
  mutex 
)    (void)(mutex); { }

Definition at line 105 of file TVirtualMutex.h.

◆ R__LOCKGUARD_UNLOCK

#define R__LOCKGUARD_UNLOCK (   name)    { }

Definition at line 107 of file TVirtualMutex.h.

Variable Documentation

◆ gGlobalMutex

R__EXTERN TVirtualMutex* gGlobalMutex

Definition at line 27 of file TVirtualMutex.h.

TVirtualMutex::Factory
virtual TVirtualMutex * Factory(Bool_t=kFALSE)=0
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
ROOT::Internal::IsParBranchProcessingEnabled
Bool_t IsParBranchProcessingEnabled()
Returns true if parallel branch processing is enabled.
Definition: TROOT.cxx:440
gGlobalMutex
R__EXTERN TVirtualMutex * gGlobalMutex
Definition: TVirtualMutex.h:27
TVirtualMutex::UnLock
virtual Int_t UnLock()=0