Wefts::OSMutexBase Class Reference
[OS Threading Level Abstraction.]

#include <wefts_os_base.h>

Inheritance diagram for Wefts::OSMutexBase:

Inheritance graph
[legend]
List of all members.

Detailed Description

Implements an OS specific mutex This mutex class is not supposed to be reentrant, but it is supposed to have an trylock() feature at OS level.

See also:
OS Threading Abstraction (and Independence) Layer


Public Member Functions

virtual void lock ()=0
 Locks the mutex.

virtual bool trylock ()=0
 Try to lock the mutex.

virtual void unlock ()=0
 Unlocks the mutex.


Protected Member Functions

 OSMutexBase ()
 Initializes the internal data of the mutex.


Constructor & Destructor Documentation

Wefts::OSMutexBase::OSMutexBase  )  [inline, protected]
 

Initializes the internal data of the mutex.


Member Function Documentation

virtual void Wefts::OSMutexBase::lock  )  [inline, pure virtual]
 

Locks the mutex.

Implemented in Wefts::OSMutexPthread, and Wefts::OSMutexWindows.

virtual bool Wefts::OSMutexBase::trylock  )  [inline, pure virtual]
 

Try to lock the mutex.

Implemented in Wefts::OSMutexPthread, and Wefts::OSMutexWindows.

virtual void Wefts::OSMutexBase::unlock  )  [inline, pure virtual]
 

Unlocks the mutex.

Implemented in Wefts::OSMutexPthread, and Wefts::OSMutexWindows.


The documentation for this class was generated from the following file:
Generated on Tue Oct 5 14:57:02 2004 for Wefts by doxygen 1.3.7