Public Member Functions | Public Attributes | Private Attributes | List of all members
BuffersMPoolTest::Worker< T > Class Template Reference
Inheritance diagram for BuffersMPoolTest::Worker< T >:
Inheritance graph
[legend]

Public Member Functions

bool breakLoop ()
 
void finalize ()
 
bool initialize ()
 
void step ()
 
 Worker (TsPool< T > *pool)
 
- Public Member Functions inherited from RTT::base::RunnableInterface
ActivityInterfacegetActivity () const
 Query for the task this interface is run in. More...
 
virtual os::ThreadInterfacegetThread () const
 
virtual bool hasWork ()
 
virtual void loop ()
 
 RunnableInterface ()
 
virtual void setActivity (ActivityInterface *task)
 Set the task this interface is run in. More...
 
virtual void work (WorkReason reason)
 
virtual ~RunnableInterface ()
 

Public Attributes

int cycles
 

Private Attributes

TsPool< T > * mpool
 
bool stop
 

Additional Inherited Members

- Public Types inherited from RTT::base::RunnableInterface
enum  WorkReason { TimeOut = 0, Trigger, IOReady }
 

Detailed Description

template<typename T>
class BuffersMPoolTest::Worker< T >

Definition at line 765 of file buffers_test.cpp.

Constructor & Destructor Documentation

template<typename T >
BuffersMPoolTest::Worker< T >::Worker ( TsPool< T > *  pool)
inline

Definition at line 773 of file buffers_test.cpp.

Member Function Documentation

template<typename T >
bool BuffersMPoolTest::Worker< T >::breakLoop ( )
inlinevirtual

This method is called by the framework to break out of the loop() method. Reimplement this method to signal loop() to return and return true on success. When this method is not reimplemented by you, it will always return false, denoting that the loop can not be broken. If breakLoop() returns true, the caller will wait until loop() returns.

Returns
true if the loop could be notified to return.

Reimplemented from RTT::base::RunnableInterface.

Definition at line 787 of file buffers_test.cpp.

template<typename T >
void BuffersMPoolTest::Worker< T >::finalize ( )
inlinevirtual

The method that will be called after the last periodical execution of step() ( or non periodical execution of loop() ), when the RunnableInterface is stopped.

Implements RTT::base::RunnableInterface.

Definition at line 791 of file buffers_test.cpp.

template<typename T >
bool BuffersMPoolTest::Worker< T >::initialize ( )
inlinevirtual

The method that will be called before the first periodical execution of step() ( or non periodical execution of loop() ), when the thread is started.

Implements RTT::base::RunnableInterface.

Definition at line 774 of file buffers_test.cpp.

template<typename T >
void BuffersMPoolTest::Worker< T >::step ( )
inlinevirtual

The method that will be (periodically) executed when this object is run in an Activity.

Implements RTT::base::RunnableInterface.

Definition at line 778 of file buffers_test.cpp.

Member Data Documentation

template<typename T >
int BuffersMPoolTest::Worker< T >::cycles

Definition at line 771 of file buffers_test.cpp.

template<typename T >
TsPool<T>* BuffersMPoolTest::Worker< T >::mpool
private

Definition at line 768 of file buffers_test.cpp.

template<typename T >
bool BuffersMPoolTest::Worker< T >::stop
private

Definition at line 769 of file buffers_test.cpp.


The documentation for this class was generated from the following file:


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:40