Mutex Class Reference

#include <mutex.h>

Inheritance diagram for Mutex:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Mutex (enum MutexType _type=NORMAL_MUTEX)
 Mutex (const Mutex &m)
 ~Mutex ()
void Lock ()
 Lock the mutex.
void Unlock ()
 Unlock the mutex.
bool TryLock ()
 Lock the mutex if it's not already locked.


Detailed Description

Mutex handling class

Definition at line 39 of file mutex.h.


Constructor & Destructor Documentation

Mutex::Mutex ( enum MutexType  _type = NORMAL_MUTEX  ) 

Definition at line 40 of file mutex.cpp.

Mutex::Mutex ( const Mutex m  ) 

Definition at line 45 of file mutex.cpp.

Mutex::~Mutex (  ) 

Definition at line 50 of file mutex.cpp.


Member Function Documentation

void Mutex::Lock (  ) 

Lock the mutex.

Definition at line 58 of file mutex.cpp.

bool Mutex::TryLock (  ) 

Lock the mutex if it's not already locked.

Returns:
true if then mutex has been locked. false if it was already locked

Definition at line 65 of file mutex.cpp.

void Mutex::Unlock (  ) 

Unlock the mutex.

Definition at line 70 of file mutex.cpp.


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

Generated on Sun Oct 10 19:10:05 2010 for libldsw by  doxygen 1.5.8