ZeusBase-Library
2.0.4
|
#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) |
Public Member Functions inherited from zeus::TZObject | |
TZObject () | |
TZObject (const TString &strName) | |
TZObject (const IString &strName) | |
Uint | getHash () const |
TString | toString () const |
virtual TString | getObjName () const |
virtual void | setObjName (const TString &name) |
Protected Member Functions | |
TAbstractMainThread () | |
TAbstractMainThread (TThreadMessageQueue &rQueue, bool bAdoptPointer) | |
virtual | ~TAbstractMainThread () |
virtual Retval MQUALIFIER | askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface) |
virtual void MQUALIFIER | addRef () const |
virtual void MQUALIFIER | release () const |
Protected Member Functions inherited from zeus::TZObject | |
virtual | ~TZObject () |
TZObject (const TZObject &rObject) | |
TZObject & | operator= (const TZObject &rObject) |
Int | getRefCounter () const |
Protected Attributes | |
TCriticalSection & | m_rLock |
internal lock More... | |
bool | m_bUseInternalDispatcher |
Flag if queue messages are dispached internally. More... | |
TThreadMessageQueue & | m_rQueue |
Message queue of the thread. More... | |
Protected Attributes inherited from zeus::TZObject | |
Uint | m_uiID |
Static Protected Attributes | |
static bool | m_bInterrupted = false |
Interrupted flag. More... | |
this class implements the functionality of a main thread. This class can not be used as an object. Subclasses are TConsoleMainThread, TBorlandMainThread etc.
|
protected |
Creates a abstract main thread object
|
protected |
Creates a abstract main thread object, using a specific queue.
|
protectedvirtual |
Destroys the abstract main thread object
|
protectedvirtual |
Reimplemented from zeus::TZObject.
|
protectedvirtual |
Reimplemented from zeus::TZObject.
|
inlinevirtual |
Implements zeus::IThread.
|
inlinevirtual |
Implements zeus::IThread.
|
virtual |
processes an object of the message queue
RET_NOERROR | : Message successfully processed |
RET_REQUEST_FAILED | No object to process |
|
virtual |
registers the main thread object to the thread manager
|
protectedvirtual |
Reimplemented from zeus::TZObject.
|
virtual |
registers the main thread object to the thread manager
|
staticprotected |
Interrupted flag.
Initialisation of the interrupt flag.
|
protected |
Flag if queue messages are dispached internally.
|
protected |
internal lock
|
protected |
Message queue of the thread.