Go to the documentation of this file.
28 #include <ArmarXCore/interface/core/ThreadingIceBase.h>
31 #include <IceUtil/Thread.h>
42 :
virtual public IceUtil::Thread
43 ,
virtual protected RunningTaskIceBase
63 callback = [parent, runningFn]()
65 return (parent->*runningFn)();
74 void setName(
const std::string& name);
88 void stop(
bool waitForJoin =
true);
107 bool isFinished()
const;
114 bool waitForFinished(
int timeoutMS = -1);
128 std::string getName()
const;
134 std::unique_ptr<Impl> impl;
165 :
public RunningTaskBase
173 typedef void (
T::*method_type)(void);
187 RunningTask(
T* parent, method_type runningFn,
const std::string& name =
"")
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.
bool empty(const std::string &s)
std::function< void()> CallbackT
bool isRunning(Status status)
Returns whether the given task status describes a state where a path is planned.
std::string GetTypeString(const std::type_info &tinf, bool withoutNamespaceSpecifier=false)
RunningTaskBase(T *parent, void(T::*runningFn)(), const std::string &name="")
Constructs a running task within the class parent which calls the runningFn in a new thread.
#define ARMARXCORE_IMPORT_EXPORT
This file offers overloads of toIce() and fromIce() functions for STL container types.