12 #ifndef ROC_CORE_COND_H_
13 #define ROC_CORE_COND_H_
50 mutable pthread_cond_t cond_;
53 pthread_mutex_t& mutex_;
#define ROC_ATTR_NODISCARD
Emit warning if function result is not checked.
void signal() const
Wake up one pending waits.
Cond(const Mutex &mutex)
Initialize.
void broadcast() const
Wake up all pending waits.
ROC_ATTR_NODISCARD bool timed_wait(nanoseconds_t timeout) const
Wait with timeout.
Base class for non-copyable objects.
int64_t nanoseconds_t
Nanoseconds.