SkyPulse UAV V0.1
|
#include <CppThread.hpp>
Public Member Functions | |
void | start () |
void | join () |
Protected Member Functions | |
virtual void | run ()=0 |
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
(C) 2020-2022, Bernd Porr mail@.nosp@m.bern.nosp@m.porr..nosp@m.me.u.nosp@m.k A thin wrapper around the C++ thread model to avoid a static callback. Instead just inherit this class and overload run() which then runs in this thread. This is header-only so that it can be performed inline for max performance.
|
inline |
Waits for the thread to terminate.
|
protectedpure virtual |
This method does all the work of this thread. Overload this abstract function with a real one doing the actual work of this thread.
Implemented in BMP180Thread, ControlThread, MahonyFilterThread, MPU6050Thread, STM32Thread, and TCPThread.
|
inline |
Starts the thread.