22 #ifndef IBRCOMMON_CONDITIONAL_H_
23 #define IBRCOMMON_CONDITIONAL_H_
56 void signal(
bool broadcast =
false) throw ();
63 void wait(
size_t timeout = 0) throw (ConditionalAbortException);
64 void wait(struct timespec *ts) throw (ConditionalAbortException);
69 void abort() throw ();
74 void reset() throw ();
82 static
void gettimeout(
size_t timeout, struct timespec *hires) throw ();
90 pthread_condattr_t attr;
96 static attribute attr;
101 template<
class T, T block>
119 if (
ifState(block))
return false;
133 return (state == _state);