#include <GenericTask.h>
Inheritance diagram for CGenericTask:
Public Member Functions | |
CGenericTask () | |
CGenericTask. | |
virtual | ~CGenericTask () |
~CGenericTask | |
bool | SendMessage (CEID ID, void *pMessage) |
SendMessage. | |
void | Start () |
StartTask. | |
void | EndTask () |
EndTask. | |
bool | IsRunning () |
IsRunning. | |
void | Sleep (uint32 msec) |
Sleep. | |
Protected Member Functions | |
bool | ReadMessage (CEID &ID, void *&pMessage) |
ReadMessage. |
Description: A generic task class to be derived from to simplify creating threads.
Limitations: NONE
|
CGenericTask. Description: Constructor for the CGenericTask class. Limitations: NONE |
|
~CGenericTask Description: Deconstructor for the CGenericTask class. Limitations: NONE |
|
EndTask. Description: This function causes a thread to terminate. Limitations: Derived classes must periodically check the m_bTerminate attribute for the termination flag. |
|
IsRunning. Description: This function checks whether the thread has terminated. Limitations: None |
|
ReadMessage. Description: Read a message from the message queue
|
|
SendMessage. Description: Sends a message to this particular task
|
|
Sleep. Description: Makes the thread sleep for given milliseconds
|
|
StartTask. Description: Creates the thread for the class to run in Limitations: NONE |