OpenThreads::Mutex Class Reference

This class provides an object-oriented thread mutex interface. More...

List of all members.

Public Member Functions

 Mutex ()
virtual ~Mutex ()
virtual int lock ()
virtual int unlock ()
virtual int trylock ()

Friends

class Condition


Detailed Description

This class provides an object-oriented thread mutex interface.


Constructor & Destructor Documentation

OpenThreads::Mutex::Mutex (  ) 

Constructor

virtual OpenThreads::Mutex::~Mutex (  )  [virtual]

Destructor


Member Function Documentation

virtual int OpenThreads::Mutex::lock (  )  [virtual]

Lock the mutex

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

virtual int OpenThreads::Mutex::trylock (  )  [virtual]

Test if mutex can be locked.

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

virtual int OpenThreads::Mutex::unlock (  )  [virtual]

Unlock the mutex

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


Friends And Related Function Documentation

friend class Condition [friend]


The documentation for this class was generated from the following file:
Generated on Wed Oct 4 23:21:32 2006 for OpenThreads by  doxygen 1.4.7