Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

lfc::Mutex Class Reference

Inheritance diagram for lfc::Mutex::

lfc::Object List of all members.

Public Methods

 Mutex ()
 creates an (unlocked) mutex. More...

virtual ~Mutex () throw ()
virtual void lock ()
 locks the mutex. If the mutex has already been locked it waits until it becomes available. More...

virtual bool tryLock ()
 attempts to lock the mutex. Doesn't block if the mutex has already been locked. More...

virtual void unlock ()
 unlocks the mutex. More...


Protected Attributes

pal::threads::MutexHandle m_handle

Detailed Description

Todo:
lock timeout? (need pthreads support, win32 ok)


Constructor & Destructor Documentation

lfc::Mutex::Mutex  
 

creates an (unlocked) mutex.

lfc::Mutex::~Mutex   throw () [virtual]
 


Member Function Documentation

void lfc::Mutex::lock   [virtual]
 

locks the mutex. If the mutex has already been locked it waits until it becomes available.

bool lfc::Mutex::tryLock   [virtual]
 

attempts to lock the mutex. Doesn't block if the mutex has already been locked.

void lfc::Mutex::unlock   [virtual]
 

unlocks the mutex.


Member Data Documentation

pal::threads::MutexHandle lfc::Mutex::m_handle [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 25 03:13:16 2002 for LFC2 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001