ZeusBase-Library
2.0.4
|
#include <IThreadManager.hpp>
Public Member Functions | |
virtual void MQUALIFIER | addThread (Uint uiID, IThreadMessageQueue &rQueue, bool bInterrupted)=0 |
virtual Uint MQUALIFIER | getCurrentThreadID () const =0 |
virtual Retval MQUALIFIER | getMessageQueue (Uint uiThreadID, IThreadMessageQueue *&rpQueue)=0 |
virtual bool MQUALIFIER | isThreadInterrupted (Uint uiID) const =0 |
virtual void MQUALIFIER | removeThread (Uint uiID)=0 |
virtual void MQUALIFIER | setThreadState (Uint uiID, bool bInterrupted)=0 |
virtual Uint MQUALIFIER | getMainThreadID () const =0 |
virtual Retval MQUALIFIER | postObject (Uint uiThreadID, ISynchronizeObject &rObject, bool bWaitForCompletion)=0 |
virtual Retval MQUALIFIER | postObjectToMainThread (ISynchronizeObject &rObject, bool bWaitForCompletion)=0 |
virtual bool MQUALIFIER | isCurrentThread (Uint uiThreadID) const =0 |
virtual bool MQUALIFIER | isCurrentMainThread () const =0 |
Public Member Functions inherited from zeus::IZUnknown | |
virtual Retval MQUALIFIER | askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface)=0 |
virtual void MQUALIFIER | addRef () const =0 |
virtual void MQUALIFIER | release () const =0 |
This interface defines the methods of the thread manager
|
pure virtual |
adds a thread to the manager and registers the thread message queue
uiID | : Thread ID |
rQueue | : Thread message queue |
bInterrupted | : interrupted flag |
Implemented in zeus::TThreadManager.
|
pure virtual |
Returns the current thread ID (calling thread)
Implemented in zeus::TThreadManager.
|
pure virtual |
Returns the ID of the main thread
Implemented in zeus::TThreadManager.
|
pure virtual |
Returns the thread message queue
uiThreadID | : ID of the queue owner thread |
rpQueue | : Return parameter |
RET_NOERROR | : Queue returned |
RET_REQUEST_FAILED | : Could not find a queue |
Implemented in zeus::TThreadManager.
|
pure virtual |
Checks if the current thread is the main thread
Implemented in zeus::TThreadManager.
|
pure virtual |
Checks if the current thread is the thread with ID uiThreadID.
Implemented in zeus::TThreadManager.
|
pure virtual |
Checks if a thread is interrupted
uiID | : Thread ID |
true | : Thread is interrupted |
false | Thread is running |
Implemented in zeus::TThreadManager.
|
pure virtual |
posts an object to a thread message queue
uiThreadID | : ID of the queue |
rObject | : Object to post |
bWaitForCompletion | : flag if the calling thread must wait for process completion |
Implemented in zeus::TThreadManager.
|
pure virtual |
posts an object to the main thread message queue
rObject | : Object to post |
bWaitForCompletion | : flag if the calling thread must wait for process completion |
Implemented in zeus::TThreadManager.
|
pure virtual |
|
pure virtual |
Sets a new thread state
uiID | : Thread ID |
bInterrupted | : interrupted flag |
Implemented in zeus::TThreadManager.