1 #ifndef COIN_SBCONDVAR_H
2 #define COIN_SBCONDVAR_H
27 #include <Inventor/SbBasic.h>
28 #include <Inventor/SbTime.h>
29 #include <Inventor/C/threads/condvar.h>
30 #include <Inventor/threads/SbMutex.h>
34 SbCondVar(
void) { this->condvar = cc_condvar_construct(); }
38 return cc_condvar_wait(this->condvar, mutex.mutex) == CC_OK;
41 return cc_condvar_timed_wait(this->condvar, mutex.mutex, period.
getValue()) == CC_OK;
44 void wakeOne(
void) { cc_condvar_wake_one(this->condvar); }
45 void wakeAll(
void) { cc_condvar_wake_all(this->condvar); }
51 #endif // !COIN_SBCONDVAR_H