Thread class to manage a core level threading system. Allows execution of a job. More...
#include <mi32/mithread.h>
Public Member Functions | |
| WORKER (MISTATUSMANAGER *DftManager=0, const char *DebugName=0) | |
| ~WORKER () | |
| void | CancelJob () |
| void | ExecuteJob (JOB &Job) |
| bool | IsCanceling () const |
Thread class to manage a core level threading system. Allows execution of a job.
| MITHREAD::WORKER::WORKER | ( | MISTATUSMANAGER * | DftManager = 0, |
|
| const char * | DebugName = 0 | |||
| ) | [explicit] |
Thread ctor, the thread instance will be created and put into a wait state.
| DftManager | Default status manager to assign any job, unless job overrides it | |
| DebugName | Name to assign to the thread, only applicable to Windows debugging under Visual Studio. |
| MITHREAD::WORKER::~WORKER | ( | ) |
Thread dtor This call will block if a job is running.
| void MITHREAD::WORKER::CancelJob | ( | ) |
Cancel a running job in the thread. The derived class of JOB must call JOB::CheckCancel() to determine if it has been canceled.
| void MITHREAD::WORKER::ExecuteJob | ( | JOB & | Job | ) |
Execute the job passed in in the thread instance managed by this class If the JOB::STATE_DeleteWhenCompleted is set on 'Job', the job will be deleted when completed.
This call will block if another job is running.
| bool MITHREAD::WORKER::IsCanceling | ( | ) | const |
Determine if the currently running job is in the cancel state.
1.6.1