ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Public Member Functions | List of all members
arpirobot::Scheduler Class Reference

#include <scheduler.hpp>

Public Member Functions

 Scheduler (unsigned int maxThreads=4)
 
std::shared_ptr< TaskaddTask (const std::function< void()> &&targetFunc, sched_clk::time_point::duration delay)
 
std::shared_ptr< TaskaddRepeatedTask (const std::function< void()> &&targetFunc, sched_clk::time_point::duration delay, sched_clk::time_point::duration rate)
 
void removeTask (std::shared_ptr< Task > task)
 

Detailed Description

Scheduler to run Tasks. Allows removing tasks


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