Add thread wrapper
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
#ifndef SENSOR_SAMPLER_HPP
|
||||
#define SENSOR_SAMPLER_HPP
|
||||
|
||||
#include "ThreadWrapper.hpp"
|
||||
|
||||
namespace app {
|
||||
|
||||
class SensorSampler {
|
||||
class SensorSampler : public ThreadWrapper<SensorSampler> {
|
||||
public:
|
||||
SensorSampler() = default;
|
||||
~SensorSampler() = default;
|
||||
|
||||
// Thread entry
|
||||
static void entryPoint(void *, void *, void *);
|
||||
void init();
|
||||
|
||||
void run();
|
||||
|
||||
void finalize();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user