#include <AbstractMainThread.h>

Public Member Functions | |
| virtual bool MQUALIFIER | isInterrupted () const |
| virtual Uint MQUALIFIER | getThreadID () const |
| virtual Retval | processObject () |
| virtual void | registerThread (TThreadManager &rManager, bool bUseInternalDispatcher) |
| virtual void | unregisterThread (TThreadManager &rManager) |
Protected Member Functions | |
| TAbstractMainThread () | |
| TAbstractMainThread (TThreadMessageQueue &rQueue) | |
| virtual | ~TAbstractMainThread () |
| virtual Retval MQUALIFIER | askForInterface (Uint uiInterfaceID, IZUnknown *&rpIface) |
| virtual void MQUALIFIER | addRef () const |
| virtual void MQUALIFIER | release () const |
Protected Attributes | |
| TCriticalSection & | m_rLock |
| internal lock | |
| bool | m_bUseInternalDispatcher |
| Flag if queue messages are dispached internally. | |
| TThreadMessageQueue & | m_rQueue |
| Message queue of the thread. | |
Static Protected Attributes | |
| static bool | m_bInterrupted = false |
| Interrupted flag. | |
| TAbstractMainThread::TAbstractMainThread | ( | ) | [protected] |
Creates a abstract main thread object
| TAbstractMainThread::TAbstractMainThread | ( | TThreadMessageQueue & | rQueue | ) | [protected] |
Creates a abstract main thread object, using a specific queue.
| TAbstractMainThread::~TAbstractMainThread | ( | ) | [protected, virtual] |
Destroys the abstract main thread object
| bool MQUALIFIER zeus::TAbstractMainThread::isInterrupted | ( | ) | const [inline, virtual] |
| Uint MQUALIFIER zeus::TAbstractMainThread::getThreadID | ( | ) | const [inline, virtual] |
| Retval TAbstractMainThread::processObject | ( | ) | [virtual] |
processes an object of the message queue
| RET_NOERROR | : Message successfully processed | |
| RET_REQUEST_FAILED,: | No object to process |
| void TAbstractMainThread::registerThread | ( | TThreadManager & | rManager, | |
| bool | bUseInternalDispatcher | |||
| ) | [virtual] |
registers the main thread object to the thread manager
| void TAbstractMainThread::unregisterThread | ( | TThreadManager & | rManager | ) | [virtual] |
registers the main thread object to the thread manager
| virtual Retval MQUALIFIER zeus::TAbstractMainThread::askForInterface | ( | Uint | uiInterfaceID, | |
| IZUnknown *& | rpIface | |||
| ) | [protected, virtual] |
Reimplemented from zeus::TZObject.
| virtual void MQUALIFIER zeus::TAbstractMainThread::addRef | ( | ) | const [protected, virtual] |
| virtual void MQUALIFIER zeus::TAbstractMainThread::release | ( | ) | const [protected, virtual] |
bool TAbstractMainThread::m_bInterrupted = false [static, protected] |
Interrupted flag.
Initialisation of the interrupt flag.
TCriticalSection& zeus::TAbstractMainThread::m_rLock [protected] |
internal lock
bool zeus::TAbstractMainThread::m_bUseInternalDispatcher [protected] |
Flag if queue messages are dispached internally.
TThreadMessageQueue& zeus::TAbstractMainThread::m_rQueue [protected] |
Message queue of the thread.