Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
|
#include <periodicThread.h>
Public Member Functions | |
Periodic_Thread ()=default | |
template<typename ... Tn> | |
Periodic_Thread (Owner *owner, void(Owner::*task)(Tn...), Tn...an) | |
~Periodic_Thread () | |
void | start (std::int64_t period) |
void | join () |
void | adjust_period (std::int64_t period) |
void | set_period (std::int64_t period) |
std::int64_t | period () const |
bool | running () |
Periodic_Thread (const Periodic_Thread &)=delete | |
Periodic_Thread & | operator= (const Periodic_Thread &)=delete |
Static Public Member Functions | |
static void * | run (void *arg) |
|
default |
Periodic_Thread< Owner >::Periodic_Thread | ( | Owner * | owner, |
void(Owner::*)(Tn...) | task, | ||
Tn... | an | ||
) |
Periodic_Thread< Owner >::~Periodic_Thread | ( | ) |
|
delete |
void Periodic_Thread< Owner >::adjust_period | ( | std::int64_t | period | ) |
void Periodic_Thread< Owner >::join | ( | ) |
|
delete |
std::int64_t Periodic_Thread< Owner >::period | ( | ) | const |
bool Periodic_Thread< Owner >::running | ( | ) |
void Periodic_Thread< Owner >::set_period | ( | std::int64_t | period | ) |
void Periodic_Thread< Owner >::start | ( | std::int64_t | period | ) |