53 if (crc == 1 &&
gDebug > 0) {
54 Info(
"Wait",
"TCondition::Wait() returns %d [%ld]",
56 }
else if (crc != 1) {
57 Error(
"Wait",
"TCondition::Wait() returns %d [%ld]",
61 Error(
"Wait",
"UnLock on error returns %d [%ld]",
Int_t TryWait()
If semaphore value is > 0 then decrement it and return 0.
Int_t Wait(Int_t millisec=0)
If semaphore value is > 0 then decrement it and carry on.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Int_t UnLock()
Unlock the mutex.
static Long_t SelfId()
Static method returning the id for the current thread.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Int_t Wait()
Wait to be signaled.
Int_t Post()
If any threads are blocked in Wait(), wake one of them up and increment the value of the semaphore...
Int_t Lock()
Lock the mutex.
Int_t TimedWaitRelative(ULong_t ms)
Wait to be signaled or till the timer times out.
ClassImp(TSemaphore) TSemaphore
Create counting semaphore.