ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <scheduler.hpp>
Public Member Functions | |
Scheduler (unsigned int maxThreads=4) | |
std::shared_ptr< Task > | addTask (const std::function< void()> &&targetFunc, sched_clk::time_point::duration delay) |
std::shared_ptr< Task > | addRepeatedTask (const std::function< void()> &&targetFunc, sched_clk::time_point::duration delay, sched_clk::time_point::duration rate) |
void | removeTask (std::shared_ptr< Task > task) |
Scheduler to run Tasks. Allows removing tasks