RunningTask Class Reference

#include <ArmarXCore/core/ArmarXMultipleObjectsScheduler.h>

Public Types

typedef void(T::* method_type) (void)
 Typedef for the thread method. More...
 
using pointer_type = IceUtil::Handle< RunningTask< T > >
 Shared pointer type for convenience. More...
 

Public Member Functions

 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. More...
 

Detailed Description

Definition at line 35 of file ArmarXMultipleObjectsScheduler.h.

Member Typedef Documentation

◆ method_type

typedef void(T::* method_type(void)

Typedef for the thread method.

Thread methods need to follow the template void methodName(void). Parameter passing is not used since methods are members of the class.

Definition at line 173 of file RunningTask.h.

◆ pointer_type

Shared pointer type for convenience.

Definition at line 178 of file RunningTask.h.

Constructor & Destructor Documentation

◆ RunningTask()

RunningTask ( T parent,
method_type  runningFn,
const std::string &  name = "" 
)
inline

Constructs a running task within the class parent which calls the runningFn in a new thread.

Parameters
nameof this thread, that describes what it is doing. If string is empty, it will use the name of the class with RTTI

Definition at line 187 of file RunningTask.h.


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