1 #ifndef ORG_EEROS_CORE_PERIODICTHREAD_HPP_
2 #define ORG_EEROS_CORE_PERIODICTHREAD_HPP_
25 #ifdef REALTIME_SUPPORT
37 std::atomic<status> s;
39 static constexpr uint64_t to_ns(
double s) {
return static_cast<uint64_t
>(s * 1000000000); }
40 static constexpr uint64_t to_us(
double s) {
return static_cast<uint64_t
>(s * 1000000); }
41 static constexpr uint64_t to_ms(
double s) {
return static_cast<uint64_t
>(s * 1000); }
45 #endif // ORG_EEROS_CORE_PERIODICTHREAD_HPP_
Definition: PeriodicThread.hpp:13
Definition: PeriodicThread.hpp:13
Definition: PeriodicThread.hpp:10
Definition: PeriodicCounter.hpp:11
Definition: PeriodicThread.hpp:13
static constexpr bool isRealtimeSupported()
Definition: PeriodicThread.hpp:24
PeriodicCounter counter
Definition: PeriodicThread.hpp:32
virtual double getPeriod() const
Definition: Thread.hpp:13
status
Definition: PeriodicThread.hpp:13
virtual ~PeriodicThread()
PeriodicThread(double period, double delay=0, bool realtime=false, status start=running, int priority=0)
Definition: PeriodicThread_POSIX.cpp:16
Definition: PeriodicThread.hpp:13
virtual status getStatus() const