paludis
Version 2.6.0
|
#include <thread_pool.hh>
Public Member Functions | |
void | create_thread (const std::function< void() noexcept > &) |
unsigned | number_of_threads () const |
Basic operations | |
ThreadPool () | |
~ThreadPool () | |
A thread pool holds a number of related threads.
void paludis::ThreadPool::create_thread | ( | const std::function< void() noexcept > & | ) |
Create a new thread in our pool.
unsigned paludis::ThreadPool::number_of_threads | ( | ) | const |
How many threads does our pool contain?