44 template <
class Functor = std::function<
void(
void)>>
50 bool assureMeanInterval =
false,
51 std::string name =
"",
52 bool forceSystemTime =
true) :
71 template <
class... Ts>
84 template <
class Functor = std::function<
void(
void)>>
102 template <
class... Ts>
PeriodicTask(T *parent, method_type periodicFn, int periodMs, bool assureMeanInterval=false, std::string name="", bool forceSystemTime=true)
Constructs a periodic task within the class parent which calls the peridoicFn in a new thread.
RunningTask(T *parent, method_type runningFn, const std::string &name="")
Constructs a running task within the class parent which calls the runningFn in a new thread.
std::function< void(void)> f
SimplePeriodicTask(Functor f, int periodMs, bool assureMeanInterval=false, std::string name="", bool forceSystemTime=true)
SimpleRunningTask(Functor f, std::string name="")
This file offers overloads of toIce() and fromIce() functions for STL container types.
SimplePeriodicTask(Ts...) -> SimplePeriodicTask< std::function< void(void)> >
SimpleRunningTask(Ts...) -> SimpleRunningTask< std::function< void(void)> >