iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nrt::UnboundedThreadPool Class Reference

#include <nrt/Core/Design/ThreadPools.H>

An unbounded thread pool with a shared work queue.

This is a version of BoundedThreadPool that grows automatically as new jobs are pushed onto the thread pool.

Definition at line 132 of file ThreadPools.H.

Public Member Functions

 UnboundedThreadPool (size_t const initialThreads=std::thread::hardware_concurrency(), size_t const maxThreads=std::numeric_limits< size_t >::max())
 
template<class Func >
std::future< typename
std::result_of< Func()>::type > 
pushJob (Func f)
 

Protected Member Functions

void workerThread ()
 
void checkAndIncrease ()
 

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