Motorcortex Core  version: 2.7.6
mcx::container::ThreadPool Class Reference

Public Member Functions

 ThreadPool (size_t thread_count=std::thread::hardware_concurrency())
 
bool setName (std::string name)
 
std::string getName () const
 
bool setTaskSched (TaskSched task_sched, int task_prio=0)
 
std::tuple< TaskSched, int > getTaskSched () const
 
bool setCpuAffinity (const std::vector< uint32_t > &cpu_affinity_list)
 
std::vector< uint32_t > getCpuAffinity () const
 
template<typename FunctionType >
std::future< typename std::result_of< FunctionType()>::type > submit (FunctionType f)
 
bool empty () const
 

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