Go to the documentation of this file.
27 #include <ArmarXCore/interface/core/ThreadingIceBase.h>
30 #include <IceUtil/Thread.h>
31 #include <IceUtil/Time.h>
45 virtual public ThreadListInterface,
55 double getCpuUsage(
const Ice::Current&
c = Ice::emptyCurrent)
override;
57 RunningTaskList
getRunningTasks(
const Ice::Current&
c = Ice::emptyCurrent)
override;
58 PeriodicTaskList
getPeriodicTasks(
const Ice::Current&
c = Ice::emptyCurrent)
override;
110 std::unique_ptr<Impl> impl;
static int GetThreadJiffies(int threadId)
void addRunningTask(RunningTaskIceBase *threadPtr)
add RunningTask instance to this thread list
static ThreadListPtr getApplicationThreadList()
getApplicationThreadList retrieves the ThreadList, that contains all TimerTasks and PeriodicTasks in ...
RunningTaskList getRunningTasks(const Ice::Current &c=Ice::emptyCurrent) override
double getCpuUsage(const Ice::Current &c=Ice::emptyCurrent) override
void onDisconnectComponent() override
Hook for subclass.
Ice::StringSeq getRunningTaskNames(const Ice::Current &c=Ice::emptyCurrent) override
bool removePeriodicTask(PeriodicTaskIceBase *threadPtr)
remove PeriodicTask instance from this thread list
ARMARXCORE_IMPORT_EXPORT ostream & operator<<(ostream &stream, const armarx::RunningTaskIceBase &task)
std::string getDefaultName() const override
Retrieve default name of component.
void setApplicationThreadListName(const std::string &threadListName)
The ManagedIceObject is the base class for all ArmarX objects.
PeriodicTaskList getPeriodicTasks(const Ice::Current &c=Ice::emptyCurrent) override
void addPeriodicTask(PeriodicTaskIceBase *threadPtr)
add PeriodicTask instance to this thread list
#define ARMARXCORE_IMPORT_EXPORT
void onInitComponent() override
Pure virtual hook for the subclass.
Ice::StringSeq getPeriodicTaskNames(const Ice::Current &c=Ice::emptyCurrent) override
Main class of an ArmarX process.
bool removeRunningTask(RunningTaskIceBase *threadPtr)
remove RunningTask instance from this thread list
This file offers overloads of toIce() and fromIce() functions for STL container types.
void onConnectComponent() override
Pure virtual hook for the subclass.
IceInternal::Handle< ThreadList > ThreadListPtr