| vrlmod::DtThreadedObject::DtThreadedObject |
( |
| ) |
|
Constructor, pass it owner ship of a MAKRti::DtThreadable object.
- Warning
- setRunnableObject must be called before starting.
| vrlmod::DtThreadedObject::DtThreadedObject |
( |
DtRunnableSP |
ptr | ) |
|
Constructor, pass it owner ship of a MAKRti::DtThreadable object.
- Exceptions
-
| virtual vrlmod::DtThreadedObject::~DtThreadedObject |
( |
| ) |
|
|
virtual |
- Warning
- destructor calls blocking function: stop(true)
| void vrlmod::DtThreadedObject::join |
( |
| ) |
|
Block the current thread until the threaded object stops running.
- Exceptions
-
| DtRunnableSP vrlmod::DtThreadedObject::runnableObject |
( |
| ) |
const |
Gets the runnable object.
| bool vrlmod::DtThreadedObject::running |
( |
| ) |
const |
| void vrlmod::DtThreadedObject::setRunnableObject |
( |
DtRunnableSP |
newObject | ) |
|
Set the runnable object to be run.
- Exceptions
-
| void vrlmod::DtThreadedObject::setRunning |
( |
bool |
value | ) |
|
|
protected |
Change the running state.
| void vrlmod::DtThreadedObject::start |
( |
| ) |
|
Starts the thread running, calls its MAKRti::DtThreadable run method A thread can be started again if it is finished running.
- Exceptions
-
| DtInvalidInput | |
| DtThreadAlreadyRunning | |
| DtThreadNotStarted | |
| void vrlmod::DtThreadedObject::stop |
( |
bool |
block | ) |
|
Signal the object to stop, it may not respond Optionally block execution until it stops Calls the MAKRti::DtThreadable run method.
| MAKRti::DtMutex vrlmod::DtThreadedObject::myMutex |
|
mutableprotected |
| bool vrlmod::DtThreadedObject::myRunningFlag |
|
protected |
| MAKRti::DtThread* vrlmod::DtThreadedObject::myThread |
|
protected |
The documentation for this class was generated from the following file: