OpenThreads

OpenThreads::ReentrantMutex Class Reference

Inheritance diagram for OpenThreads::ReentrantMutex:

List of all members.

Public Member Functions

 ReentrantMutex ()
virtual ~ReentrantMutex ()
virtual int lock ()
 Lock the mutex.
virtual int unlock ()
 Unlock the mutex.
virtual int trylock ()
 Test if mutex can be locked.

Constructor & Destructor Documentation

OpenThreads::ReentrantMutex::ReentrantMutex ( ) [inline]
virtual OpenThreads::ReentrantMutex::~ReentrantMutex ( ) [inline, virtual]

Member Function Documentation

virtual int OpenThreads::ReentrantMutex::lock ( ) [inline, virtual]

Lock the mutex.

Returns:
0 if normal, -1 if errno set, errno code otherwise.

Reimplemented from OpenThreads::Mutex.

References OpenThreads::Thread::CurrentThread().

Referenced by trylock(), and unlock().

virtual int OpenThreads::ReentrantMutex::trylock ( ) [inline, virtual]

Test if mutex can be locked.

Returns:
0 if normal, -1 if errno set, errno code otherwise.

Reimplemented from OpenThreads::Mutex.

References OpenThreads::Thread::CurrentThread(), and lock().

virtual int OpenThreads::ReentrantMutex::unlock ( ) [inline, virtual]

Unlock the mutex.

Returns:
0 if normal, -1 if errno set, errno code otherwise.

Reimplemented from OpenThreads::Mutex.

References OpenThreads::Thread::CurrentThread(), and lock().


The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:21:25 for the OpenThreads by doxygen 1.7.3.