1#ifndef COIN_SBCONDVAR_H
2#define COIN_SBCONDVAR_H
36#include <Inventor/SbBasic.h>
37#include <Inventor/SbTime.h>
38#include <Inventor/C/threads/condvar.h>
39#include <Inventor/threads/SbMutex.h>
43 SbCondVar(
void) { this->condvar = cc_condvar_construct(); }
44 ~SbCondVar(
void) { cc_condvar_destruct(this->condvar); }
47 return cc_condvar_wait(this->condvar, mutex.mutex) == CC_OK;
50 return cc_condvar_timed_wait(this->condvar, mutex.mutex, period.
getValue()) == CC_OK;
53 void wakeOne(
void) { cc_condvar_wake_one(this->condvar); }
54 void wakeAll(
void) { cc_condvar_wake_all(this->condvar); }
Definition: SbCondVar.h:41
The SbTime class instances represents time values.
Definition: SbTime.h:50
double getValue(void) const
Definition: SbTime.cpp:280
struct cc_condvar cc_condvar
The type definition for the conditional variable structure.
Definition: common.h:60