SkyPulse UAV V0.1
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
CppThread Class Referenceabstract

#include <CppThread.hpp>

Inheritance diagram for CppThread:
BMP180Thread ControlThread MPU6050Thread MahonyFilterThread STM32Thread TCPThread

Public Member Functions

void start ()
 
void join ()
 

Protected Member Functions

virtual void run ()=0
 

Detailed Description

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.

Member Function Documentation

◆ join()

void CppThread::join ( )
inline

Waits for the thread to terminate.

◆ run()

virtual void CppThread::run ( )
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.

◆ start()

void CppThread::start ( )
inline

Starts the thread.


The documentation for this class was generated from the following file: