![]() |
NDEVR
API Documentation
|
A class that updates a device by repeatedly calling update() until stop() is called. More...
Public Member Functions | |
| DeviceUpdateThread (DesignObjectLookup *lookup, Device *sensor) | |
| Constructs an update thread for the given device. | |
| virtual void | run () override |
| The main thread loop that repeatedly calls the device's update method. | |
| void | stop () |
| Signals the update loop to stop and waits for the thread to finish. | |
Protected Attributes | |
| volatile bool | m_is_running |
| Flag controlling the update loop execution. | |
| DesignObjectLookup * | m_lookup = nullptr |
| Design object lookup for update context. | |
| Device * | m_sensor |
| The device being updated by this thread. | |
A class that updates a device by repeatedly calling update() until stop() is called.
| DeviceUpdateThread::DeviceUpdateThread | ( | DesignObjectLookup * | lookup, |
| Device * | sensor ) |
Constructs an update thread for the given device.
| [in] | lookup | The design object lookup for resolving references. |
| [in] | sensor | The device to update periodically. |
References DeviceUpdateThread().
Referenced by DeviceUpdateThread().