tsm  0.1.0
Public Member Functions | Protected Attributes | List of all members
tsm::RealtimeConfigurator Struct Reference

#include <tsm_impl.h>

Inheritance diagram for tsm::RealtimeConfigurator:
Inheritance graph
Collaboration diagram for tsm::RealtimeConfigurator:
Collaboration graph

Public Member Functions

 RealtimeConfigurator ()=default
 
 RealtimeConfigurator (int priority, std::array< int, 4 > affinity)
 
void config_realtime_thread ()
 
template<typename Fn >
std::thread real_time_thread (Fn fn)
 
std::thread make_real_time (std::thread &&t)
 

Protected Attributes

int PROCESS_PRIORITY { 98 }
 
std::array< int, 4 > CPU_AFFINITY { 0, 1, 2, 3 }
 

Constructor & Destructor Documentation

◆ RealtimeConfigurator() [1/2]

tsm::RealtimeConfigurator::RealtimeConfigurator ( )
default

◆ RealtimeConfigurator() [2/2]

tsm::RealtimeConfigurator::RealtimeConfigurator ( int  priority,
std::array< int, 4 >  affinity 
)
inline

Member Function Documentation

◆ config_realtime_thread()

void tsm::RealtimeConfigurator::config_realtime_thread ( )
inline

◆ make_real_time()

std::thread tsm::RealtimeConfigurator::make_real_time ( std::thread &&  t)
inline

◆ real_time_thread()

template<typename Fn >
std::thread tsm::RealtimeConfigurator::real_time_thread ( Fn  fn)
inline

Member Data Documentation

◆ CPU_AFFINITY

std::array<int, 4> tsm::RealtimeConfigurator::CPU_AFFINITY { 0, 1, 2, 3 }
protected

◆ PROCESS_PRIORITY

int tsm::RealtimeConfigurator::PROCESS_PRIORITY { 98 }
protected

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