SimplePeriodicTask< Functor > Class Template Reference

Usage: More...

#include <ArmarXCore/core/application/ApplicationNetworkStats.h>

Public Member Functions

void runningFn ()
 
 SimplePeriodicTask (Functor f, int periodMs, bool assureMeanInterval=false, std::string name="", bool forceSystemTime=true)
 

Public Attributes

Functor f
 

Detailed Description

template<class Functor = std::function<void(void)>>
class armarx::SimplePeriodicTask< Functor >

Usage:

   SimplePeriodicTask<>::pointer_type task = new SimplePeriodicTask<>([&]
   {
      ARMARX_INFO << "Hello world from another thread";
   }, 100);
   task->start();

Definition at line 32 of file ApplicationNetworkStats.h.

Constructor & Destructor Documentation

◆ SimplePeriodicTask()

SimplePeriodicTask ( Functor  f,
int  periodMs,
bool  assureMeanInterval = false,
std::string  name = "",
bool  forceSystemTime = true 
)
inline

Definition at line 47 of file TaskUtil.h.

Member Function Documentation

◆ runningFn()

void runningFn ( )
inline

Definition at line 51 of file TaskUtil.h.

Member Data Documentation

◆ f

Functor f

Definition at line 55 of file TaskUtil.h.


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