eXperiment robotics framework

Thread Struct Reference

#include <erf_threads.hpp>

Inheritance diagram for Thread:

Inheritance graph
[legend]
Collaboration diagram for Thread:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Thread ()
 Thread (Plugin *in_plugin)
 ~Thread ()
void set_sleep (double secs)
void enable_sleep ()
void disable_sleep ()
virtual void stop ()
virtual void resume ()
virtual void init_thread ()
virtual void end_thread ()
virtual void run_thread ()
template<typename T>
GetVar (const T &aV) const
template<typename T>
void GetVarByRef (const T aBegin, const T aEnd, T aDest) const

Public Attributes

Pluginplugin
bool is_stop
bool do_sleep
boost::thread * a_thread
boost::mutex a_mutex
boost::xtime xt


Detailed Description

Definition at line 30 of file erf_threads.hpp.


Constructor & Destructor Documentation

Thread::Thread (  ) 

Thread::Thread ( Plugin in_plugin  ) 

Thread::~Thread (  ) 


Member Function Documentation

void Thread::set_sleep ( double  secs  ) 

void Thread::enable_sleep (  ) 

void Thread::disable_sleep (  ) 

virtual void Thread::stop (  )  [virtual]

virtual void Thread::resume (  )  [virtual]

virtual void Thread::init_thread (  )  [virtual]

virtual void Thread::end_thread (  )  [virtual]

virtual void Thread::run_thread (  )  [virtual]

template<typename T>
T Thread::GetVar ( const T &  aV  )  const [inline]

Definition at line 68 of file erf_threads.hpp.

References a_mutex.

template<typename T>
void Thread::GetVarByRef ( const T  aBegin,
const T  aEnd,
aDest 
) const [inline]

Definition at line 83 of file erf_threads.hpp.

References a_mutex.


Member Data Documentation

Definition at line 32 of file erf_threads.hpp.

Definition at line 34 of file erf_threads.hpp.

Definition at line 35 of file erf_threads.hpp.

boost::thread* Thread::a_thread

Definition at line 37 of file erf_threads.hpp.

boost::mutex Thread::a_mutex

Definition at line 38 of file erf_threads.hpp.

Referenced by GetVar(), and GetVarByRef().

boost::xtime Thread::xt

Definition at line 39 of file erf_threads.hpp.


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

The miarn project - written by Joao Xavier