#include <Threads.h>
Inheritance diagram for H3D::HLThread:

Public Member Functions | |
| bool | isActive () |
| If the hd scheduler has been started true is returned. | |
| void | setActive (bool _active) |
| Set the flag indicating if the hd scheduler has been started or not. | |
| virtual void | synchronousCallback (CallbackFunc func, void *data) |
| Add a callback function to be executed in this thread. | |
| virtual void | asynchronousCallback (CallbackFunc func, void *data) |
| Add a callback function to be executed in this thread. | |
Static Public Member Functions | |
| static HLThread * | getInstance () |
| Get the singleton instance of HLThread. | |
Static Protected Member Functions | |
| static PeriodicThread::CallbackCode | setThreadId (void *_data) |
Protected Attributes | |
| bool | is_active |
Static Protected Attributes | |
| static HLThread * | singleton = new HLThread |
It is used by the HLHapticsDevice and uses its own thread handling. Since only one instance of the HD API scheduler exists it is a singleton class.
|
||||||||||||
|
Add a callback function to be executed in this thread. The calling thread will continue executing after adding the callback and will not wait for the callback function to execute. |
|
||||||||||||
|
Add a callback function to be executed in this thread. The calling thread will wait until the callback function has returned before continuing. |
1.4.5