27#include <Inventor/SbBasic.h>
28#include <Inventor/C/threads/mutex.h>
32 SbMutex(
void) { this->mutex = cc_mutex_construct(); }
36 cc_mutex_lock(this->mutex);
43 return cc_mutex_try_lock(this->mutex) == CC_OK;
47 cc_mutex_unlock(this->mutex);
64#include <Inventor/threads/SbThreadAutoLock.h>
A class for synchronizing access to global variables.
Definition SbCondVar.h:32
A basic class for managing a mutex.
Definition SbMutex.h:30
int lock(void)
Definition SbMutex.h:35
int unlock(void)
Definition SbMutex.h:46
SbBool tryLock(void)
Definition SbMutex.h:42
SbMutex(void)
Definition SbMutex.h:32
~SbMutex()
Definition SbMutex.h:33
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.