![]() |
VR-Link API Documentation for HLA 1516
|
Collaboration diagram for DtThreadedObject:Public Member Functions | |
| DtThreadedObject () | |
| Constructor, pass it owner ship of a DtThreadable object setRunnableObject must be called before starting. More... | |
| DtThreadedObject (DtRunnableSP ptr) | |
| Constructor, pass it owner ship of a DtThreadable object. More... | |
| virtual | ~DtThreadedObject () |
| Warning, destructor calls blocking function: stop(true) More... | |
| void | start () |
| Starts the thread running, calls its DtThreadable run method A thread can be started again if it is finished running. More... | |
| void | join () |
| Block the current thread until the threaded object stops running. More... | |
| void | stop (bool block) |
| Signal the object to stop, it may not respond Optionally block execution until it stops Calls the DtThreadable run method. More... | |
| bool | running () const |
| Is the thread running. More... | |
| void | setRunnableObject (DtRunnableSP newObject) |
| Set the runnable object to be run. More... | |
| DtRunnableSP | runnableObject () const |
| Gets the runnable object. More... | |
Protected Member Functions | |
| DtThreadedObject (const DtThreadedObject &) | |
| Make Non-copiable. More... | |
| DtThreadedObject & | operator= (const DtThreadedObject &) |
| void | setRunning (bool value) |
| Change the running state. More... | |
Protected Attributes | |
| bool | myRunningFlag |
| DtRunnableSP | myObject |
| DtThread * | myThread |
| DtMutex | myMutex |
| DtThreadedObject::DtThreadedObject | ( | ) |
Constructor, pass it owner ship of a DtThreadable object setRunnableObject must be called before starting.
| DtThreadedObject::DtThreadedObject | ( | DtRunnableSP | ptr | ) |
Constructor, pass it owner ship of a DtThreadable object.
| DtInvalidInput |
|
virtual |
Warning, destructor calls blocking function: stop(true)
|
protected |
Make Non-copiable.
| void DtThreadedObject::join | ( | ) |
Block the current thread until the threaded object stops running.
| DtThreadNotStarted |
|
protected |
| DtRunnableSP DtThreadedObject::runnableObject | ( | ) | const |
Gets the runnable object.
| bool DtThreadedObject::running | ( | ) | const |
Is the thread running.
| void DtThreadedObject::setRunnableObject | ( | DtRunnableSP | newObject | ) |
Set the runnable object to be run.
| DtThreadAlreadyRunning |
|
protected |
Change the running state.
| void DtThreadedObject::start | ( | ) |
Starts the thread running, calls its DtThreadable run method A thread can be started again if it is finished running.
| DtInvalidInput | |
| DtThreadAlreadyRunning | |
| DtThreadNotStarted |
| void DtThreadedObject::stop | ( | bool | block | ) |
Signal the object to stop, it may not respond Optionally block execution until it stops Calls the DtThreadable run method.
|
mutableprotected |
|
protected |
|
protected |
|
protected |