1 #ifndef COIN_SBTHREADMUTEX_H
2 #define COIN_SBTHREADMUTEX_H
36 #include <Inventor/SbBasic.h>
37 #include <Inventor/C/threads/recmutex.h>
41 SbThreadMutex(
void) { this->mutex = cc_recmutex_construct(); }
45 return cc_recmutex_lock(this->mutex);
48 SbBool tryLock(
void) {
49 return cc_recmutex_try_lock(this->mutex) == CC_OK;
53 return cc_recmutex_unlock(this->mutex);
67 #include <Inventor/threads/SbThreadAutoLock.h>
Definition: SbCondVar.h:41
Definition: SbThreadMutex.h:39
struct cc_recmutex cc_recmutex
The type definition for the recursive mutex structure.
Definition: common.h:64