TRWLock Class Reference

#include <TRWLock.h>

Inheritance diagram for TRWLock:

TObject TObject List of all members.

Public Member Functions

 TRWLock ()
virtual ~TRWLock ()
Int_t ReadLock ()
Int_t ReadUnLock ()
Int_t WriteLock ()
Int_t WriteUnLock ()
 TRWLock ()
virtual ~TRWLock ()
Int_t ReadLock ()
Int_t ReadUnLock ()
Int_t WriteLock ()
Int_t WriteUnLock ()

Private Member Functions

 TRWLock (const TRWLock &)
TRWLockoperator= (const TRWLock &)
 TRWLock (const TRWLock &)
TRWLockoperator= (const TRWLock &)

Private Attributes

Int_t fReaders
Int_t fWriters
TMutex fMutex
TCondition fLockFree

Detailed Description

Definition at line 37 of file TRWLock.h.


Constructor & Destructor Documentation

TRWLock::TRWLock ( const TRWLock  )  [private]

TRWLock::TRWLock (  ) 

virtual TRWLock::~TRWLock (  )  [inline, virtual]

Definition at line 50 of file TRWLock.h.

TRWLock::TRWLock ( const TRWLock  )  [private]

TRWLock::TRWLock (  ) 

virtual TRWLock::~TRWLock (  )  [inline, virtual]

Definition at line 50 of file TRWLock.h.


Member Function Documentation

TRWLock& TRWLock::operator= ( const TRWLock  )  [private]

Int_t TRWLock::ReadLock (  ) 

Definition at line 36 of file TRWLock.cxx.

References fLockFree, fMutex, fReaders, fWriters, TMutex::Lock(), TMutex::UnLock(), and TCondition::Wait().

Referenced by G__G__Thread_170_0_4().

Int_t TRWLock::ReadUnLock (  ) 

Definition at line 53 of file TRWLock.cxx.

References fLockFree, fMutex, fReaders, TMutex::Lock(), TCondition::Signal(), and TMutex::UnLock().

Referenced by G__G__Thread_170_0_5().

Int_t TRWLock::WriteLock (  ) 

Definition at line 73 of file TRWLock.cxx.

References fLockFree, fMutex, fReaders, fWriters, TMutex::Lock(), TMutex::UnLock(), and TCondition::Wait().

Referenced by G__G__Thread_170_0_6().

Int_t TRWLock::WriteUnLock (  ) 

Definition at line 90 of file TRWLock.cxx.

References TCondition::Broadcast(), fLockFree, fMutex, fWriters, TMutex::Lock(), and TMutex::UnLock().

Referenced by G__G__Thread_170_0_7().

TRWLock& TRWLock::operator= ( const TRWLock  )  [private]

Int_t TRWLock::ReadLock (  ) 

Int_t TRWLock::ReadUnLock (  ) 

Int_t TRWLock::WriteLock (  ) 

Int_t TRWLock::WriteUnLock (  ) 


Member Data Documentation

Int_t TRWLock::fReaders [private]

Definition at line 40 of file TRWLock.h.

Referenced by ReadLock(), ReadUnLock(), and WriteLock().

Int_t TRWLock::fWriters [private]

Definition at line 41 of file TRWLock.h.

Referenced by ReadLock(), WriteLock(), and WriteUnLock().

TMutex TRWLock::fMutex [private]

Definition at line 42 of file TRWLock.h.

Referenced by ReadLock(), ReadUnLock(), WriteLock(), and WriteUnLock().

TCondition TRWLock::fLockFree [private]

Definition at line 43 of file TRWLock.h.

Referenced by ReadLock(), ReadUnLock(), WriteLock(), and WriteUnLock().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:46:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1