ZeusBase-Library
2.0.4
|
#include <ConsoleMainThread.h>
Public Member Functions | |
void | initControlHandler () |
void | setTimeSlice (const Float &rfDwellTime) |
void | start () |
Public Member Functions inherited from zeus::TAbstractMainThread | |
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) |
Static Public Member Functions | |
static TConsoleMainThread & | getInstance () |
static void | terminate () |
static bool | isTerminated () |
Protected Member Functions | |
TConsoleMainThread () | |
virtual | ~TConsoleMainThread () |
Protected Member Functions inherited from zeus::TAbstractMainThread | |
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 |
Static Protected Member Functions | |
static BOOL __stdcall | breakRoutine (DWORD dwCtrlType) |
Static Protected Attributes | |
static TConsoleMainThread | m_Instance |
Static singleton object. More... | |
Static Protected Attributes inherited from zeus::TAbstractMainThread | |
static bool | m_bInterrupted = false |
Interrupted flag. More... | |
Additional Inherited Members | |
Protected Attributes inherited from zeus::TAbstractMainThread | |
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 |
The class wraps the main thread of a console application. It includes the runtime environment and controller object
|
protected |
Creates an new console main thread object
|
protectedvirtual |
Destroys the thread object
|
staticprotected |
|
inlinestatic |
returns the instance of the console main thread
void TConsoleMainThread::initControlHandler | ( | ) |
Initialises all handlers
|
static |
Checks if the application has been terminated
true | : terminated |
false | not terminated |
|
inline |
sets the dwell time while looping in the main thread
void TConsoleMainThread::start | ( | ) |
Starts the application and keeps it running, until Control + C is pressed
|
static |
Terminates the application
|
staticprotected |
Static singleton object.
Initialises the static object.