Go to the documentation of this file.
30 #include <IceUtil/Thread.h>
33 #include <ArmarXCore/interface/core/ThreadingIceBase.h>
42 virtual public IceUtil::Thread,
43 virtual protected RunningTaskIceBase
63 callback = [parent, runningFn]() {
return (parent->*runningFn)(); };
71 void setName(
const std::string& name);
85 void stop(
bool waitForJoin =
true);
104 bool isFinished()
const;
111 bool waitForFinished(
int timeoutMS = -1);
125 std::string getName()
const;
131 std::unique_ptr<Impl> impl;
169 typedef void (
T::*method_type)(void);
183 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.