Background wxThread that runs the RumPi library's sensor loop and posts refreshed component data (and the curated dashboard snapshot) to the UI thread via wxEVT_RUMPI_UPDATE events.
More...
#include <RumPiManagerThread.h>
|
| | RumPiManagerThread (wxEvtHandler *handler) |
| | Builds the manager thread (joinable) and stores the UI handler. More...
|
| |
| virtual | ~RumPiManagerThread () |
| | Destroys the thread, waiting for it to finish first. More...
|
| |
| virtual wxThread::ExitCode | Entry () override |
| | Thread body: starts the library, then loops on a fast tick (~100ms) fast-sampling the wind/motion/light sensors every tick, and on a slower wall-clock cadence (~2s) refreshes all components and posts their data plus the dashboard snapshot to the UI, until the thread is asked to exit. More...
|
| |
Background wxThread that runs the RumPi library's sensor loop and posts refreshed component data (and the curated dashboard snapshot) to the UI thread via wxEVT_RUMPI_UPDATE events.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
◆ RumPiManagerThread()
| RumPiManagerThread::RumPiManagerThread |
( |
wxEvtHandler * |
handler | ) |
|
Builds the manager thread (joinable) and stores the UI handler.
The RumPi library is initialized later, on the worker thread at the top of Entry() (not here), so every library call happens on the one worker thread.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
thread->Run();
Background wxThread that runs the RumPi library's sensor loop and posts refreshed component data (and...
Definition: RumPiManagerThread.h:16
RumPiManagerThread(wxEvtHandler *handler)
Builds the manager thread (joinable) and stores the UI handler.
Definition: RumPiManagerThread.cpp:24
- Parameters
-
| [in] | handler | The UI event handler to post component updates to. |
◆ ~RumPiManagerThread()
| RumPiManagerThread::~RumPiManagerThread |
( |
| ) |
|
|
virtual |
Destroys the thread, waiting for it to finish first.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
◆ Entry()
| wxThread::ExitCode RumPiManagerThread::Entry |
( |
| ) |
|
|
overridevirtual |
Thread body: starts the library, then loops on a fast tick (~100ms) fast-sampling the wind/motion/light sensors every tick, and on a slower wall-clock cadence (~2s) refreshes all components and posts their data plus the dashboard snapshot to the UI, until the thread is asked to exit.
- Author
- Eddie O'Hagan
- Date
- 8/13/2026
- Returns
- The thread's exit code (always 0).
◆ myWxEventHandler
| wxEvtHandler* RumPiManagerThread::myWxEventHandler |
|
protected |
The UI event handler that receives component-update events.
The documentation for this class was generated from the following files: