#include <function_caller.h>
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)> > | queue |
bool | running |
std::vector< boost::thread * > | threads |
Definition at line 15 of file function_caller.h.
megatree::FunctionCaller::FunctionCaller | ( | unsigned | thread_pool_size = 1 | ) | [inline] |
Definition at line 18 of file function_caller.h.
megatree::FunctionCaller::~FunctionCaller | ( | ) | [inline] |
Definition at line 27 of file function_caller.h.
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.
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.
bool megatree::FunctionCaller::running [private] |
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.