41 #include "../base/DisposableInterface.hpp" 42 #include "../os/MainThread.hpp" 47 using namespace extras;
66 :
ActivityInterface(run), mmaster(master), mperiod( master->getPeriod() ), running(false), active(false),
208 if (!
mmaster) {
return false; }
211 if (!engine) {
return false; }
217 if (!
mmaster) {
return false; }
virtual void work(WorkReason reason)
static ThreadInterface * Instance()
virtual void executeAndDispose()
A class for running a certain piece of code in a thread.
virtual bool isActive() const =0
TriggerSlaveActivity(SlaveActivity *act)
virtual unsigned getCpuAffinity() const =0
virtual bool run(RunnableInterface *r)
RunnableInterface * runner
Interface to start/stop and query a Activity.
static std::ostream & endl(std::ostream &__os)
virtual Seconds getPeriod() const =0
An object that is executable and is freed after execution.
virtual void finalize()=0
virtual os::ThreadInterface * thread()=0
virtual bool initialize()=0
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
virtual bool process(base::DisposableInterface *c)
virtual RunnableInterface * getRunner() const