Public Member Functions | Protected Member Functions | Protected Attributes
vigir_footstep_planning::threading::Worker< T > Class Template Reference

#include <worker.h>

List of all members.

Public Member Functions

void interruptJobs ()
void start ()
void stop ()
 Worker (Queue< T > &queue, unsigned int jobs_per_thread=10, bool auto_start=true)
virtual ~Worker ()

Protected Member Functions

void run (unsigned int n)

Protected Attributes

bool exit
unsigned int jobs_per_thread
Queue< T > & queue
bool run_jobs
boost::mutex run_jobs_mutex
boost::thread thread

Detailed Description

template<class T>
class vigir_footstep_planning::threading::Worker< T >

Definition at line 45 of file worker.h.


Constructor & Destructor Documentation

template<class T >
vigir_footstep_planning::threading::Worker< T >::Worker ( Queue< T > &  queue,
unsigned int  jobs_per_thread = 10,
bool  auto_start = true 
) [inline]

Definition at line 48 of file worker.h.

template<class T >
virtual vigir_footstep_planning::threading::Worker< T >::~Worker ( ) [inline, virtual]

Definition at line 57 of file worker.h.


Member Function Documentation

template<class T >
void vigir_footstep_planning::threading::Worker< T >::interruptJobs ( ) [inline]

Definition at line 84 of file worker.h.

template<class T >
void vigir_footstep_planning::threading::Worker< T >::run ( unsigned int  n) [inline, protected]

Definition at line 91 of file worker.h.

template<class T >
void vigir_footstep_planning::threading::Worker< T >::start ( ) [inline]

Definition at line 63 of file worker.h.

template<class T >
void vigir_footstep_planning::threading::Worker< T >::stop ( ) [inline]

Definition at line 70 of file worker.h.


Member Data Documentation

template<class T >
bool vigir_footstep_planning::threading::Worker< T >::exit [protected]

Definition at line 124 of file worker.h.

template<class T >
unsigned int vigir_footstep_planning::threading::Worker< T >::jobs_per_thread [protected]

Definition at line 123 of file worker.h.

template<class T >
Queue<T>& vigir_footstep_planning::threading::Worker< T >::queue [protected]

Definition at line 122 of file worker.h.

template<class T >
bool vigir_footstep_planning::threading::Worker< T >::run_jobs [protected]

Definition at line 125 of file worker.h.

template<class T >
boost::mutex vigir_footstep_planning::threading::Worker< T >::run_jobs_mutex [mutable, protected]

Definition at line 120 of file worker.h.

template<class T >
boost::thread vigir_footstep_planning::threading::Worker< T >::thread [protected]

Definition at line 119 of file worker.h.


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


vigir_footstep_planning_lib
Author(s): Alexander Stumpf
autogenerated on Sat Jul 15 2017 02:47:56