1 #ifndef CARMA_UTIL_SLEEPER_H
2 #define CARMA_UTIL_SLEEPER_H
6 #include "carma/util/PthreadMutex.h"
7 #include "carma/util/PthreadCond.h"
29 void waitUntilAbsTime(
const struct ::timespec & absTime );
30 void waitUntilAbsTime(
const struct ::timeval & absTime );
32 void waitForWholeSecDuration(
const int duration );
42 void internalWaitUntilAbsTime(
const struct ::timespec & absTime );
46 bool interruptRequested_;
Abstract base class for PthreadCond::TimedWait based sleeping with quit/interuption support...
A simple wrapper class that makes use of ::pthread_cond_t easier in a C++ world.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...
void interruptPresentOrNextWait()
Interrupt the wait that is presently occurring on this instance or if no such wait is presently occur...