tinythreadlib::Mutex Class Reference

Recursive mutex. More...

#include <tinythreadlib.hpp>

List of all members.

Public Member Functions

 Mutex () throw ()
 ~Mutex () throw ()
void lock () throw ()
bool tryLock () throw ()
void release () throw ()

Friends

class ConditionVariable

Detailed Description

Recursive mutex.

Represents a recursive mutex.

Definition at line 158 of file tinythreadlib.hpp.


Constructor & Destructor Documentation

tinythreadlib::Mutex::Mutex (  )  throw () [inline]

Create a mutex object.

Definition at line 187 of file tinythreadlib.hpp.

tinythreadlib::Mutex::~Mutex (  )  throw () [inline]

Destroy the mutex object. The results are undefined, if the mutex is still locked by one thread!

Definition at line 219 of file tinythreadlib.hpp.


Member Function Documentation

void tinythreadlib::Mutex::lock (  )  throw () [inline]

Lock the mutex. Recursive calls are possible!

Definition at line 232 of file tinythreadlib.hpp.

void tinythreadlib::Mutex::release (  )  throw () [inline]

Release the mutex.

Definition at line 273 of file tinythreadlib.hpp.

bool tinythreadlib::Mutex::tryLock (  )  throw () [inline]

Try to lock the mutex if it is not locked by another thread. Recursive calls are possible! Returns true, if the mutex was successfully locked, and false if it is currently locked by another thread.

Definition at line 250 of file tinythreadlib.hpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Defines

Generated on Mon Apr 19 22:37:45 2010 for TinyThreadLib by  doxygen 1.6.1