40 int rc = pthread_cond_init(&
fCond, 0);
43 SysError(
"TPosixCondition",
"pthread_cond_init error");
51 int rc = pthread_cond_destroy(&
fCond);
54 SysError(
"~TPosixCondition",
"pthread_cond_destroy error");
92 return pthread_cond_signal(&
fCond);
101 return pthread_cond_broadcast(&
fCond);
virtual void SysError(const char *method, const char *msgfmt,...) const
Issue system error message.
TPosixCondition(TMutexImp *m)
Create Condition variable.
virtual ~TPosixCondition()
TCondition dtor.
Int_t Signal()
If one or more threads have called Wait(), Signal() wakes up at least one of them, possibly more.
Int_t Wait()
Wait for the condition variable to be signalled.
Int_t Broadcast()
Broadcast is like signal but wakes all threads which have called Wait().
Int_t TimedWait(ULong_t secs, ULong_t nanoSecs=0)
TimedWait() is given an absolute time to wait until.