TSemaphore Class Reference

#include <TSemaphore.h>

Inheritance diagram for TSemaphore:

TObject TObject List of all members.

Public Member Functions

 TSemaphore (UInt_t initial=1)
virtual ~TSemaphore ()
Int_t Wait (Int_t millisec=0)
Int_t TryWait ()
Int_t Post ()
 TSemaphore (UInt_t initial=1)
virtual ~TSemaphore ()
Int_t Wait (Int_t millisec=0)
Int_t TryWait ()
Int_t Post ()

Private Member Functions

 TSemaphore (const TSemaphore &s)
TSemaphoreoperator= (const TSemaphore &s)
 TSemaphore (const TSemaphore &s)
TSemaphoreoperator= (const TSemaphore &s)

Private Attributes

TMutex fMutex
TCondition fCond
Int_t fValue

Detailed Description

Definition at line 36 of file TSemaphore.h.


Constructor & Destructor Documentation

TSemaphore::TSemaphore ( const TSemaphore s  )  [private]

TSemaphore::TSemaphore ( UInt_t  initial = 1  ) 

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

Definition at line 48 of file TSemaphore.h.

TSemaphore::TSemaphore ( const TSemaphore s  )  [private]

TSemaphore::TSemaphore ( UInt_t  initial = 1  ) 

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

Definition at line 48 of file TSemaphore.h.


Member Function Documentation

TSemaphore& TSemaphore::operator= ( const TSemaphore s  )  [private]

Int_t TSemaphore::Wait ( Int_t  millisec = 0  ) 

Definition at line 34 of file TSemaphore.cxx.

References TObject::Error(), fCond, fMutex, fValue, gDebug, TObject::Info(), TMutex::Lock(), TThread::SelfId(), TCondition::TimedWaitRelative(), TMutex::UnLock(), and TCondition::Wait().

Referenced by TXSocket::Close(), and TXSocket::PickUpReady().

Int_t TSemaphore::TryWait (  ) 

Definition at line 78 of file TSemaphore.cxx.

References TObject::Error(), fMutex, fValue, TMutex::Lock(), TThread::SelfId(), and TMutex::UnLock().

Referenced by TXSocket::Flush(), TXSlave::Interrupt(), and TXSemaphoreGuard::TXSemaphoreGuard().

Int_t TSemaphore::Post (  ) 

Definition at line 101 of file TSemaphore.cxx.

References TObject::Error(), fCond, fMutex, fValue, TMutex::Lock(), TThread::SelfId(), TCondition::Signal(), and TMutex::UnLock().

Referenced by TXSocket::Close(), TXSlave::Interrupt(), TXSocket::PostMsg(), TXSocket::ProcessUnsolicitedMsg(), and TXSemaphoreGuard::~TXSemaphoreGuard().

TSemaphore& TSemaphore::operator= ( const TSemaphore s  )  [private]

Int_t TSemaphore::Wait ( Int_t  millisec = 0  ) 

Int_t TSemaphore::TryWait (  ) 

Int_t TSemaphore::Post (  ) 


Member Data Documentation

TMutex TSemaphore::fMutex [private]

Definition at line 39 of file TSemaphore.h.

Referenced by Post(), TryWait(), and Wait().

TCondition TSemaphore::fCond [private]

Definition at line 40 of file TSemaphore.h.

Referenced by Post(), and Wait().

Int_t TSemaphore::fValue [private]

Definition at line 41 of file TSemaphore.h.

Referenced by Post(), TryWait(), and Wait().


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