![]() |
http://www.sim.no http://www.coin3d.org |
#include <Inventor/threads/SbMutex.h>
This class provides a portable framework around the mutex interface of the underlying native thread-handling toolkit.
Public Member Functions | |
SbMutex (void) | |
~SbMutex (void) | |
int | lock (void) |
SbBool | tryLock (void) |
int | unlock (void) |
Friends | |
class | SbCondVar |
|
Constructor. |
|
Destructor. |
|
This method locks the mutex. If the mutex was previously unlocked, the thread will lock the mutex and continue running. If the mutex was already locked when this call is made, the thread will be suspended until the other thread holding the mutex releases it. This is a blocking operation. |
|
This method tries to lock the mutex, and returns whether it was locked or not. This is a non-blocking operation. |
|
This method unlocks the mutex. |
Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.
Generated on Wed May 3 11:18:21 2006 for Coin by Doxygen. 1.4.6