Mutex Class Reference

Mutex class. More...

#include <Thread.h>

List of all members.

Public Member Functions

 Mutex ()
 Class constructor.
virtual ~Mutex ()
 Class destructor.
bool lock ()
 Lock mutex.
void unlock ()
 Unlock mutex.

Detailed Description

Mutex class.

Implements pthread mutex functionality.


Constructor & Destructor Documentation

Mutex::Mutex (  ) 

Class constructor.

Initializes the mutex object. Initial state of the mutex is unlocked.

Mutex::~Mutex (  )  [virtual]

Class destructor.

Terminates the mutex object. The mutex is unlocked before termination.


Member Function Documentation

bool Mutex::lock (  ) 

Lock mutex.

Locks (or acquires) the mutex object by the calling thread. The call will block until the mutex is unlocked by another thread.

void Mutex::unlock (  ) 

Unlock mutex.

Unlocks (or releases) the mutex object and releases all lock() calls. The first thread that is pending on mutex lock will be released.


The documentation for this class was generated from the following files:
Generated on Wed Oct 20 11:13:44 2010 for libspatha by  doxygen 1.6.3