#include <Mutex.h>
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 (const InterfaceID &rInterfaceID, IZUnknown *&rpIface) |
| virtual void MQUALIFIER | addRef () const |
| virtual void MQUALIFIER | release () const |
Protected Member Functions | |
| virtual | ~TMutex () |
Implementation of a mutex. For Linux systems this is similar to the critical section which is implemented using mutex as well.
| TMutex::TMutex | ( | ) |
Creates a anonymous mutex
| TMutex::TMutex | ( | const TString & | rName, |
| bool | bOpenExisting = false |
||
| ) |
Creates a named mutex
| rName | : Name of the mutex |
| bOpenExisting | : Opens the mutex only if it exists already |
| TMutex::~TMutex | ( | ) | [protected, virtual] |
Destroys the mutex
| virtual void MQUALIFIER zeus::TMutex::addRef | ( | ) | const [virtual] |
Reimplemented from zeus::TZObject.
| virtual Retval MQUALIFIER zeus::TMutex::askForInterface | ( | const InterfaceID & | rInterfaceID, |
| IZUnknown *& | rpIface | ||
| ) | [virtual] |
Reimplemented from zeus::TZObject.
| void MQUALIFIER TMutex::enter | ( | ) | [virtual] |
Implements zeus::ICriticalSection.
| 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::leave | ( | ) | [virtual] |
Implements zeus::ICriticalSection.
| virtual void MQUALIFIER zeus::TMutex::release | ( | ) | const [virtual] |
Reimplemented from zeus::TZObject.