Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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. More...

#include <wefts_os_base.h>

Inheritance diagram for Wefts::OSMutexBase:

Inheritance graph
[legend]
List of all members.

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.


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


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 Sat Mar 13 21:05:44 2004 for Wefts by doxygen 1.3.5