|
|||
|
|||
|
#include <threadengine.h>
Inheritance diagram for Thread:


Public Member Functions | |
| Thread () | |
| Set Creator to NULL at this point. | |
| virtual | ~Thread () |
| If this thread has a Creator set, call it to free the thread. | |
| virtual void | Run ()=0 |
| Override this method to put your actual threaded code here. | |
| void | SetExitFlag () |
| Signal the thread to exit gracefully. | |
| void | ClearExitFlag () |
| Cancel an exit state. | |
| bool | GetExitFlag () |
| Get thread's current exit status. | |
Public Attributes | |
| ThreadEngine * | Creator |
| Creator thread engine. | |
Private Attributes | |
| bool | ExitFlag |
| Set to true when the thread is to exit. | |
Be sure to keep your code thread-safe and not prone to deadlocks and race conditions if you MUST use threading!
Definition at line 156 of file threadengine.h.
|
|
Set Creator to NULL at this point.
Definition at line 170 of file threadengine.h. |
|
|
If this thread has a Creator set, call it to free the thread.
Definition at line 177 of file threadengine.h. |
|
|
Cancel an exit state.
Definition at line 197 of file threadengine.h. |
|
|
Get thread's current exit status. (are we being asked to exit?) Definition at line 205 of file threadengine.h. Referenced by TestSuiteThread::Run(). |
|
|
Override this method to put your actual threaded code here.
Implemented in TestSuiteThread, QueryThread, DispatcherThread, and ConfigReaderThread. |
|
|
Signal the thread to exit gracefully.
Definition at line 190 of file threadengine.h. Referenced by ConfigReaderThread::Run(). |
|
|
Creator thread engine.
Definition at line 166 of file threadengine.h. |
|
|
Set to true when the thread is to exit.
Definition at line 161 of file threadengine.h. |