TC::MT::Mutex Class Reference
[Multithreading]

Class for protecting variables or something else which is used in more than one thread. More...

#include <TCMTMutex.h>

Inheritance diagram for TC::MT::Mutex:

Inheritance graph
[legend]
Collaboration diagram for TC::MT::Mutex:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool Lock ()=0
 Lock the mutex, if already locked wait until it get unlocked.
virtual bool TryLock ()=0
 Try to look the mutex if not locked lock it.
virtual bool TryLock (uint32 millisecs)=0
 Try to look the mutex within specified time.
virtual bool UnLock ()=0
 UnLock the mutex.
virtual ~Mutex ()


Detailed Description

Class for protecting variables or something else which is used in more than one thread.

Definition at line 60 of file TCMTMutex.h.


Constructor & Destructor Documentation

virtual TC::MT::Mutex::~Mutex (  )  [inline, virtual]

Definition at line 75 of file TCMTMutex.h.


Member Function Documentation

virtual bool TC::MT::Mutex::Lock (  )  [pure virtual]

Lock the mutex, if already locked wait until it get unlocked.

virtual bool TC::MT::Mutex::TryLock (  )  [pure virtual]

Try to look the mutex if not locked lock it.

Returns:
true if locked else false

virtual bool TC::MT::Mutex::TryLock ( uint32  millisecs  )  [pure virtual]

Try to look the mutex within specified time.

virtual bool TC::MT::Mutex::UnLock (  )  [pure virtual]

UnLock the mutex.


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

Copyright (c) Thomas Goessler 2003 - 2008