![]() |
http://www.sim.no http://www.coin3d.org |
#include <Inventor/threads/SbRWMutex.h>
Public Types | |
enum | Precedence { READ_PRECEDENCE, WRITE_PRECEDENCE } |
Public Member Functions | |
SbRWMutex (Precedence policy) | |
~SbRWMutex (void) | |
int | writeLock (void) |
SbBool | tryWriteLock (void) |
int | writeUnlock (void) |
int | readLock (void) |
int | tryReadLock (void) |
int | readUnlock (void) |
The policy on granting read locks to threads when a thread is waiting for the write lock is something that should be configurable at construction time but which isn't at the moment.
SbRWMutex::SbRWMutex | ( | Precedence | policy | ) | [inline] |
Constructor.
SbRWMutex::~SbRWMutex | ( | void | ) | [inline] |
Destructor.
int SbRWMutex::writeLock | ( | void | ) | [inline] |
This method blocks the calling thread until it gains write lock status on the SbRWMutex object.
Referenced by SoDB::writelock().
SbBool SbRWMutex::tryWriteLock | ( | void | ) | [inline] |
This method tries to gain write lock status on the SbRWMutex. TRUE is returned if it was successful, FALSE otherwise. This is a non-blocking operation.
int SbRWMutex::writeUnlock | ( | void | ) | [inline] |
This method is used for unlocking the calling thread's write lock.
Referenced by SoDB::writeunlock().
int SbRWMutex::readLock | ( | void | ) | [inline] |
This method blocks the calling thread until it gains read lock status on the SbRWMutex object.
Referenced by SoDB::readlock().
SbBool SbRWMutex::tryReadLock | ( | void | ) | [inline] |
This method tries to gain read lock status on the SbRWMutex. TRUE is returned if it was successful, FALSE otherwise. This is a non-blocking operation.
int SbRWMutex::readUnlock | ( | void | ) | [inline] |
This method is used for unlocking the calling thread's read lock.
Referenced by SoDB::readunlock().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Feb 23 16:33:41 2009 for Coin by Doxygen. 1.5.8