Public Member Functions | Private Attributes
megatree::FunctionCaller Class Reference

#include <function_caller.h>

List of all members.

Public Member Functions

void addFunction (boost::function< void(void)> func)
 FunctionCaller (unsigned thread_pool_size=1)
void threadLoop (unsigned i)
 ~FunctionCaller ()

Private Attributes

boost::condition condition
boost::mutex mutex
std::list< boost::function
< void(void)> > 
bool running
std::vector< boost::thread * > threads

Detailed Description

Definition at line 15 of file function_caller.h.

Constructor & Destructor Documentation

megatree::FunctionCaller::FunctionCaller ( unsigned  thread_pool_size = 1) [inline]

Definition at line 18 of file function_caller.h.

Definition at line 27 of file function_caller.h.

Member Function Documentation

void megatree::FunctionCaller::addFunction ( boost::function< void(void)>  func) [inline]

Definition at line 45 of file function_caller.h.

void megatree::FunctionCaller::threadLoop ( unsigned  i) [inline]

Definition at line 54 of file function_caller.h.

Member Data Documentation

boost::condition megatree::FunctionCaller::condition [private]

Definition at line 83 of file function_caller.h.

boost::mutex megatree::FunctionCaller::mutex [private]

Definition at line 87 of file function_caller.h.

std::list<boost::function<void(void)> > megatree::FunctionCaller::queue [private]

Definition at line 86 of file function_caller.h.

Definition at line 85 of file function_caller.h.

std::vector<boost::thread*> megatree::FunctionCaller::threads [private]

Definition at line 88 of file function_caller.h.

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

Author(s): Stuart Glaser
autogenerated on Mon Dec 2 2013 13:01:15