38 #ifdef ORO_PRAGMA_INTERFACE 39 #pragma implementation 41 #include "../Time.hpp" 43 #include "../os/MutexLock.hpp" 44 #include "../Logger.hpp" 49 using namespace extras;
122 res =
thread_->addActivity(
this );
123 if ( res ==
false ) {
140 if (
thread_->removeActivity(
this ) ) {
170 return thread_->getCpuAffinity();
175 return thread_->setCpuAffinity(cpu);
double Seconds
Seconds are stored as a double precision float.
A class for running a certain piece of code in a thread.
long secs
seconds as a signed long.
virtual void step()=0
The method that will be (periodically) executed when this object is run in an Activity.
RunnableInterface * runner
A thread which is being run.
Interface to start/stop and query a Activity.
virtual void finalize()=0
The method that will be called after the last periodical execution of step() ( or non periodical exec...
virtual bool initialize()=0
The method that will be called before the first periodical execution of step() ( or non periodical ex...
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
long long nsecs
nanoseconds as a signed long long.
virtual void work(WorkReason reason)
Identical to step() but gives a reason why the function was called.