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

#include <worker.h>

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 ( )
inlinevirtual

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)
inlineprotected

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
mutableprotected

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 Mon Jun 10 2019 15:47:33