25#ifndef _SB_THREAD_MUTEX_H_
26#define _SB_THREAD_MUTEX_H_
28#include <Inventor/SbBase.h>
78#ifndef HIDDEN_FROM_DOC
93 {
if (mutex)
return _lock();
else return 0; }
103 {
if (mutex)
return _unlock();
else return 0; }
113 {
if (mutex)
return _trylock();
else return 0; }
116#if defined(__linux__) || defined(__APPLE__)
117 pthread_mutex_t* getMutex() {
return mutex; }
125 LONG
volatile numLocks;
126 unsigned int m_lockOwner;
129 pthread_mutex_t* mutex ;
130 pthread_mutexattr_t* mta;
131 pthread_t thread_id ;
148 void commonConstructor();
152#include <Inventor/threads/SbThreadAutoLock.h>
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...
int lock()
Locks the current thread on this mutex.
SbBool trylock()
Does basically the same as lock, but when a thread tries to gain ownership of this mutex and fails be...
SbThreadMutex()
Creates a mutex.
int unlock()
Relinquishes ownership of this mutex.
SoDEPRECATED SbThreadMutex(const SbBool force)