OpenThreads
Public Member Functions
OpenThreads::ReentrantMutex Class Reference
Inheritance diagram for OpenThreads::ReentrantMutex:
Inheritance graph
[legend]

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 Sun Jan 8 2012 13:22:11 for the OpenThreads by doxygen 1.7.4.