#include <TSemaphore.h>
Inheritance diagram for TSemaphore:

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) | |
| TSemaphore & | operator= (const TSemaphore &s) |
| TSemaphore (const TSemaphore &s) | |
| TSemaphore & | operator= (const TSemaphore &s) |
Private Attributes | |
| TMutex | fMutex |
| TCondition | fCond |
| Int_t | fValue |
Definition at line 36 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.
| 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::operator= | ( | const TSemaphore & | s | ) | [private] |
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::TryWait | ( | ) |
| Int_t TSemaphore::Post | ( | ) |
TMutex TSemaphore::fMutex [private] |
TCondition TSemaphore::fCond [private] |
Int_t TSemaphore::fValue [private] |
1.5.1