Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4LockGuard Class Reference

#include <TGo4LockGuard.h>

List of all members.

Public Methods

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

Static Public Attributes

TMutex * fgxMainMutex = 0
 Main Mutex of the go4 system. More...

Int_t fgiLockCount = 0
 Counts the numbers of locks of the recursive main mutex. More...


Private Attributes

TMutex * fxMutex
 Reference to Mutex associated with this lockguard (external or internal). More...

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

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


Constructor & Destructor Documentation

TGo4LockGuard::TGo4LockGuard TMutex *    mutex = 0
 

Definition at line 25 of file TGo4LockGuard.cxx.

References fbIsLocked, fbIsMainMutex, fgiLockCount, fgxMainMutex, and fxMutex.

TGo4LockGuard::~TGo4LockGuard   [virtual]
 

Definition at line 75 of file TGo4LockGuard.cxx.

References fbIsMainMutex, fgiLockCount, and fxMutex.


Member Data Documentation

TMutex* TGo4LockGuard::fxMutex [private]
 

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

Definition at line 56 of file TGo4LockGuard.h.

Referenced by TGo4LockGuard(), and ~TGo4LockGuard().

Bool_t TGo4LockGuard::fbIsLocked [private]
 

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

Definition at line 61 of file TGo4LockGuard.h.

Referenced by TGo4LockGuard().

Bool_t TGo4LockGuard::fbIsMainMutex [private]
 

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

Definition at line 66 of file TGo4LockGuard.h.

Referenced by TGo4LockGuard(), and ~TGo4LockGuard().

TMutex * TGo4LockGuard::fgxMainMutex = 0 [static]
 

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 23 of file TGo4LockGuard.cxx.

Referenced by TGo4CintLockTimer::Notify(), TGo4Socket::Send(), and TGo4LockGuard().

Int_t TGo4LockGuard::fgiLockCount = 0 [static]
 

Counts the numbers of locks of the recursive main mutex.

Definition at line 22 of file TGo4LockGuard.cxx.

Referenced by TGo4LockGuard(), and ~TGo4LockGuard().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:45 2005 for Go4-v2.10-5 by doxygen1.2.15