TGo4LockGuard Class Reference

#include <TGo4LockGuard.h>

List of all members.

Public Member Functions

 TGo4LockGuard (TMutex *mutex=0)
virtual ~TGo4LockGuard ()

Static Public Member Functions

static void LockMainMutex ()
static void UnLockMainMutex ()

Private Attributes

TMutex * fxMutex
 Reference to Mutex associated with this lockguard (external or internal).
Bool_t fbIsLocked
 We need this flag if first TThread starts in between ctor and dtor.
Bool_t fbIsMainMutex
 True if the mutex of this lockguard instance is the global go4 main mutex.

Static Private Attributes

static TMutex * fgxMainMutex = 0
 Main Mutex of the go4 system.
static Int_t fgiLockCount = 0
 Counts the numbers of locks of the recursive main mutex.


Detailed Description

Definition at line 41 of file TGo4LockGuard.h.


Constructor & Destructor Documentation

TGo4LockGuard::TGo4LockGuard ( TMutex *  mutex = 0  ) 

Definition at line 24 of file TGo4LockGuard.cxx.

TGo4LockGuard::~TGo4LockGuard (  )  [virtual]

Definition at line 71 of file TGo4LockGuard.cxx.


Member Function Documentation

void TGo4LockGuard::LockMainMutex (  )  [static]

Definition at line 100 of file TGo4LockGuard.cxx.

void TGo4LockGuard::UnLockMainMutex (  )  [static]

Definition at line 105 of file TGo4LockGuard.cxx.


Member Data Documentation

TMutex* TGo4LockGuard::fxMutex [private]

Reference to Mutex associated with this lockguard (external or internal).

Definition at line 55 of file TGo4LockGuard.h.

Bool_t TGo4LockGuard::fbIsLocked [private]

We need this flag if first TThread starts in between ctor and dtor.

Definition at line 58 of file TGo4LockGuard.h.

Bool_t TGo4LockGuard::fbIsMainMutex [private]

True if the mutex of this lockguard instance is the global go4 main mutex.

Definition at line 62 of file TGo4LockGuard.h.

TMutex * TGo4LockGuard::fgxMainMutex = 0 [static, private]

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 68 of file TGo4LockGuard.h.

Int_t TGo4LockGuard::fgiLockCount = 0 [static, private]

Counts the numbers of locks of the recursive main mutex.

Definition at line 71 of file TGo4LockGuard.h.


The documentation for this class was generated from the following files:

Generated on Thu Oct 28 12:35:17 2010 for Go4-ThreadManagerv4.04-2 by  doxygen 1.5.6