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

Go to the source code of this file.

Functions

cc_rwmutexcc_rwmutex_construct (void)
 
cc_rwmutexcc_rwmutex_construct_etc (cc_precedence policy)
 
void cc_rwmutex_destruct (cc_rwmutex *rwmutex)
 
int cc_rwmutex_write_lock (cc_rwmutex *rwmutex)
 
int cc_rwmutex_write_try_lock (cc_rwmutex *rwmutex)
 
int cc_rwmutex_write_unlock (cc_rwmutex *rwmutex)
 
int cc_rwmutex_read_lock (cc_rwmutex *rwmutex)
 
int cc_rwmutex_read_try_lock (cc_rwmutex *rwmutex)
 
int cc_rwmutex_read_unlock (cc_rwmutex *rwmutex)
 

Function Documentation

◆ cc_rwmutex_construct()

cc_rwmutex* cc_rwmutex_construct ( void  )

Construct a read-write mutex, with read precedence.

◆ cc_rwmutex_construct_etc()

cc_rwmutex* cc_rwmutex_construct_etc ( enum cc_precedence  policy)

Construct a read-write mutex, with read precedence or write precedence.

◆ cc_rwmutex_destruct()

void cc_rwmutex_destruct ( cc_rwmutex rwmutex)

Destruct a read-write mutex.

◆ cc_rwmutex_write_lock()

int cc_rwmutex_write_lock ( cc_rwmutex rwmutex)

Locks the specified rwmutex for writing.

◆ cc_rwmutex_write_try_lock()

int cc_rwmutex_write_try_lock ( cc_rwmutex rwmutex)

Check whether the given rwmutex* is available for write locking.

◆ cc_rwmutex_write_unlock()

int cc_rwmutex_write_unlock ( cc_rwmutex rwmutex)

Unlock the write lock on the given rwmutex.

◆ cc_rwmutex_read_lock()

int cc_rwmutex_read_lock ( cc_rwmutex rwmutex)

Locks the specified rwmutex for reading.

◆ cc_rwmutex_read_try_lock()

int cc_rwmutex_read_try_lock ( cc_rwmutex rwmutex)

Check whether the given rwmutex* is available for read locking.

◆ cc_rwmutex_read_unlock()

int cc_rwmutex_read_unlock ( cc_rwmutex rwmutex)

Unlock the read lock on the given rwmutex.