GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4LockGuard.h>
Public Member Functions | |
TGo4LockGuard (TMutex *mutex=0, Bool_t=kFALSE) | |
virtual | ~TGo4LockGuard () |
TGo4LockGuard () | |
TGo4LockGuard (int i, bool force=false) | |
Static Public Member Functions | |
static void | LockMainMutex () |
static void | UnLockMainMutex () |
static Int_t | MainMutexLockCount () |
Private Attributes | |
TMutex * | fxMutex |
Bool_t | fbIsLocked |
Bool_t | fbIsMainMutex |
int | dummy |
Static Private Attributes | |
static TMutex * | fgxMainMutex = 0 |
static Int_t | fgiLockCount = 0 |
Definition at line 40 of file TGo4LockGuard.h.
TGo4LockGuard::TGo4LockGuard | ( | TMutex * | mutex = 0 , |
Bool_t | = kFALSE |
||
) |
Definition at line 23 of file TGo4LockGuard.cxx.
References fbIsLocked, fbIsMainMutex, fgiLockCount, fgxMainMutex, and fxMutex.
|
virtual |
Definition at line 45 of file TGo4LockGuard.cxx.
References fbIsLocked, fbIsMainMutex, fgiLockCount, and fxMutex.
|
inline |
Definition at line 24 of file TGo4LockGuard.h.
|
inline |
Definition at line 25 of file TGo4LockGuard.h.
|
static |
Definition at line 58 of file TGo4LockGuard.cxx.
References fgxMainMutex.
|
static |
Definition at line 53 of file TGo4LockGuard.cxx.
References fgiLockCount.
|
static |
Definition at line 63 of file TGo4LockGuard.cxx.
References fgxMainMutex.
|
private |
Definition at line 25 of file TGo4LockGuard.h.
|
private |
We need this flag if first TThread starts in between ctor and dtor.
Definition at line 59 of file TGo4LockGuard.h.
Referenced by TGo4LockGuard(), and ~TGo4LockGuard().
|
private |
True if the mutex of this lockguard instance is the global go4 main mutex.
Definition at line 63 of file TGo4LockGuard.h.
Referenced by TGo4LockGuard(), and ~TGo4LockGuard().
|
staticprivate |
Counts the numbers of locks of the recursive main mutex.
Definition at line 72 of file TGo4LockGuard.h.
Referenced by MainMutexLockCount(), TGo4LockGuard(), and ~TGo4LockGuard().
|
staticprivate |
Main Mutex of the go4 system. Used to protect any memory critical operations. This mutex is applied if lockguard is called without giving external mutex.
Definition at line 69 of file TGo4LockGuard.h.
Referenced by LockMainMutex(), TGo4LockGuard(), and UnLockMainMutex().
|
private |
Reference to Mutex associated with this lockguard (external or internal)
Definition at line 56 of file TGo4LockGuard.h.
Referenced by TGo4LockGuard(), and ~TGo4LockGuard().