zeus::TMutex Class Reference

#include <Mutex.h>

Inheritance diagram for zeus::TMutex:

zeus::TZObject zeus::ICriticalSection zeus::IZUnknown zeus::IZUnknown

List of all members.

Public Member Functions

 TMutex ()
 TMutex (const TString &rName, bool bOpenExisting=false)
bool existedAlready () const
bool hasError () const
bool isLocked () const
bool isNamed () const
bool isValid () const
virtual void MQUALIFIER enter ()
virtual void MQUALIFIER leave ()
virtual Retval MQUALIFIER askForInterface (Uint uiInterfaceID, IZUnknown *&rpIface)
virtual void MQUALIFIER addRef () const
virtual void MQUALIFIER release () const

Protected Member Functions

virtual ~TMutex ()


Detailed Description

Implementation of a mutex. For Linux systems this is similar to the critical section which is implemented using mutex as well.

Constructor & Destructor Documentation

TMutex::TMutex (  ) 

Creates a named mutex

Parameters:
rName : Name of the mutex

TMutex::TMutex ( const TString rName,
bool  bOpenExisting = false 
)

Creates a named mutex

Parameters:
rName : Name of the mutex
bOpenExisting : Opens the mutex only if it exists already

TMutex::~TMutex (  )  [protected, virtual]

Destroys the mutex


Member Function Documentation

bool TMutex::existedAlready (  )  const

checks if the mutex already existed

bool TMutex::hasError (  )  const

returns true if the semaphore has an error

bool TMutex::isLocked (  )  const

Tests if the semaphore is locked

bool TMutex::isNamed (  )  const

returns true if the object has been named

bool TMutex::isValid (  )  const

Checks if the mutex is valid

void MQUALIFIER TMutex::enter (  )  [virtual]

void MQUALIFIER TMutex::leave (  )  [virtual]

virtual Retval MQUALIFIER zeus::TMutex::askForInterface ( Uint  uiInterfaceID,
IZUnknown *&  rpIface 
) [virtual]

Reimplemented from zeus::TZObject.

virtual void MQUALIFIER zeus::TMutex::addRef (  )  const [virtual]

See also:
IZUnknown::addRef

Reimplemented from zeus::TZObject.

virtual void MQUALIFIER zeus::TMutex::release (  )  const [virtual]

See also:
IZUnknown::release

Reimplemented from zeus::TZObject.


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:35 2009