A global thread pool.
More...
#include <threadpool.h>
◆ entry
◆ ~threadpool()
| tools::threadpool::~threadpool |
( |
| ) |
|
◆ threadpool()
| tools::threadpool::threadpool |
( |
unsigned int |
max_threads = 0 | ) |
|
|
private |
◆ get_max_concurrency()
| unsigned int tools::threadpool::get_max_concurrency |
( |
| ) |
const |
◆ getInstance()
| static threadpool& tools::threadpool::getInstance |
( |
| ) |
|
|
inlinestatic |
◆ getNewForUnitTests()
| static threadpool* tools::threadpool::getNewForUnitTests |
( |
unsigned |
max_threads = 0 | ) |
|
|
inlinestatic |
◆ run()
| void tools::threadpool::run |
( |
bool |
flush = false | ) |
|
|
private |
◆ submit()
| void tools::threadpool::submit |
( |
waiter * |
waiter, |
|
|
std::function< void()> |
f, |
|
|
bool |
leaf = false |
|
) |
| |
◆ active
| unsigned int tools::threadpool::active |
|
private |
◆ has_work
| boost::condition_variable tools::threadpool::has_work |
|
private |
◆ max
| unsigned int tools::threadpool::max |
|
private |
◆ mutex
| boost::mutex tools::threadpool::mutex |
|
private |
◆ queue
| std::deque<entry> tools::threadpool::queue |
|
private |
◆ running
| bool tools::threadpool::running |
|
private |
◆ threads
| std::vector<boost::thread> tools::threadpool::threads |
|
private |
The documentation for this class was generated from the following files: