|
Electroneum
|
A global thread pool. More...
#include <threadpool.h>
Classes | |
| class | waiter |
Public Member Functions | |
| void | submit (waiter *waiter, std::function< void()> f, bool leaf=false) |
| unsigned int | get_max_concurrency () const |
| ~threadpool () | |
Static Public Member Functions | |
| static threadpool & | getInstance () |
| static threadpool * | getNewForUnitTests (unsigned max_threads=0) |
A global thread pool.
Definition at line 43 of file threadpool.h.
| tools::threadpool::~threadpool | ( | ) |
Definition at line 49 of file threadpool.cpp.


| unsigned int tools::threadpool::get_max_concurrency | ( | ) | const |
Definition at line 92 of file threadpool.cpp.


|
inlinestatic |
Definition at line 46 of file threadpool.h.

|
inlinestatic |
Definition at line 50 of file threadpool.h.

Definition at line 69 of file threadpool.cpp.

