Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
Loading...
Searching...
No Matches
Periodic_Thread< Owner > Class Template Reference

#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_Threadoperator= (const Periodic_Thread &)=delete
 

Static Public Member Functions

static voidrun (void *arg)
 

Constructor & Destructor Documentation

◆ Periodic_Thread() [1/3]

◆ Periodic_Thread() [2/3]

template<typename Owner >
template<typename ... Tn>
Periodic_Thread< Owner >::Periodic_Thread ( Owner owner,
void(Owner::*)(Tn...)  task,
Tn...  an 
)

◆ ~Periodic_Thread()

◆ Periodic_Thread() [3/3]

Member Function Documentation

◆ adjust_period()

template<typename Owner >
void Periodic_Thread< Owner >::adjust_period ( std::int64_t  period)

◆ join()

template<typename Owner >
void Periodic_Thread< Owner >::join ( )

◆ operator=()

◆ period()

template<typename Owner >
std::int64_t Periodic_Thread< Owner >::period ( ) const

◆ run()

template<typename Owner >
void * Periodic_Thread< Owner >::run ( void arg)
static

◆ running()

template<typename Owner >
bool Periodic_Thread< Owner >::running ( )

◆ set_period()

template<typename Owner >
void Periodic_Thread< Owner >::set_period ( std::int64_t  period)

◆ start()

template<typename Owner >
void Periodic_Thread< Owner >::start ( std::int64_t  period)

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