1 #ifndef _sys_posix_Condition_h
2 #define _sys_posix_Condition_h
31 #include <sys/errno.h>
32 #include <boost/noncopyable.hpp>
51 pthread_cond_t condition;
69 int status = pthread_cond_timedwait(&condition, &mutex.
mutex, &ts);
71 if (status == ETIMEDOUT)
return false;
A condition variable for thread synchronization.
Class to represent the duration between instants of time.
struct timespec & toTimespec(struct timespec &ts, const Duration &t)
#define QPID_POSIX_ERROR(ERRNO)
#define QPID_POSIX_ASSERT_THROW_IF(ERRNO)
Same as _THROW_IF in a release build, but abort a debug build.
const AbsTime EPOCH
Absolute time point for the Unix epoch: 1970-01-01T00:00:00.
#define QPID_POSIX_ABORT_IF(ERRNO)
Class to represent an instant in time.