#include "httplib.hpp"
◆ ThreadPool() [1/2]
httplib::ThreadPool::ThreadPool |
( |
size_t |
n | ) |
|
|
inlineexplicit |
◆ ThreadPool() [2/2]
httplib::ThreadPool::ThreadPool |
( |
const ThreadPool & |
| ) |
|
|
delete |
◆ ~ThreadPool()
httplib::ThreadPool::~ThreadPool |
( |
| ) |
|
|
overridedefault |
◆ enqueue()
void httplib::ThreadPool::enqueue |
( |
std::function< void()> |
fn | ) |
|
|
inlineoverridevirtual |
◆ shutdown()
void httplib::ThreadPool::shutdown |
( |
| ) |
|
|
inlineoverridevirtual |
◆ worker
◆ cond_
std::condition_variable httplib::ThreadPool::cond_ |
|
private |
◆ jobs_
std::list<std::function<void()> > httplib::ThreadPool::jobs_ |
|
private |
◆ mutex_
std::mutex httplib::ThreadPool::mutex_ |
|
private |
◆ shutdown_
bool httplib::ThreadPool::shutdown_ |
|
private |
◆ threads_
std::vector<std::thread> httplib::ThreadPool::threads_ |
|
private |
The documentation for this class was generated from the following file: