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.
virtual ~TPosixCondition()
TCondition dtor.
Int_t Wait() override
Wait for the condition variable to be signalled.
Int_t Signal() override
If one or more threads have called Wait(), Signal() wakes up at least one of them,...
TPosixCondition(TMutexImp *m)
Create Condition variable.
Int_t TimedWait(ULong_t secs, ULong_t nanoSecs=0) override
TimedWait() is given an absolute time to wait until.
Int_t Broadcast() override
Broadcast is like signal but wakes all threads which have called Wait().