Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
recmutex.h File Reference
#include <Inventor/C/basic.h>
#include <Inventor/C/threads/common.h>

Go to the source code of this file.

Functions

cc_recmutexcc_recmutex_construct (void)
 
void cc_recmutex_destruct (cc_recmutex *recmutex)
 
int cc_recmutex_lock (cc_recmutex *recmutex)
 
int cc_recmutex_unlock (cc_recmutex *recmutex)
 
int cc_recmutex_try_lock (cc_recmutex *recmutex)
 

Function Documentation

◆ cc_recmutex_construct()

cc_recmutex* cc_recmutex_construct ( void  )

Constructs a recursive mutex.

◆ cc_recmutex_destruct()

void cc_recmutex_destruct ( cc_recmutex recmutex)

Destroys the recursive mutex recmutex.

◆ cc_recmutex_lock()

int cc_recmutex_lock ( cc_recmutex recmutex)

Locks the recursive mutex recmutex. Returns the nesting level.

◆ cc_recmutex_unlock()

int cc_recmutex_unlock ( cc_recmutex recmutex)

Unlocks the recursive mutex recmutex. Returns the nesting level after unlocking.

◆ cc_recmutex_try_lock()

int cc_recmutex_try_lock ( cc_recmutex recmutex)

Attempts to lock the recursive mutex recmutex. Returns TRUE if thread got the lock or already had the lock.