#include <timer.h>
|
using | Task = std::function< void()> |
|
Definition at line 103 of file timer.h.
ThreadPool::ThreadPool |
( |
int |
max_thread_count = 10 | ) |
|
|
inline |
ThreadPool::~ThreadPool |
( |
| ) |
|
|
inline |
void ThreadPool::_thread_check |
( |
void |
| ) |
|
|
inlineprivate |
void ThreadPool::_thread_process |
( |
void |
| ) |
|
|
inline |
template<typename callable , class... arguments>
void ThreadPool::commit |
( |
callable && |
f, |
|
|
arguments &&... |
args |
|
) |
| |
|
inline |
template<typename callable , class... arguments>
void ThreadPool::dispatch |
( |
callable && |
f, |
|
|
arguments &&... |
args |
|
) |
| |
|
inline |
void ThreadPool::set_max_thread_count |
( |
int |
max_thread_count | ) |
|
|
inline |
void ThreadPool::stop |
( |
| ) |
|
|
inline |
static void ThreadPool::thread_handle |
( |
void * |
arg | ) |
|
|
inlinestatic |
int ThreadPool::free_thread_count_ |
|
private |
int ThreadPool::max_thread_count_ |
|
private |
std::mutex ThreadPool::mutex_ |
|
private |
std::vector<std::thread> ThreadPool::pool_ |
|
private |
std::atomic<bool> ThreadPool::stoped_ |
|
private |
std::condition_variable ThreadPool::task_cond_ |
|
private |
std::queue<Task> ThreadPool::task_que_ |
|
private |
int ThreadPool::total_thread_count_ |
|
private |
The documentation for this class was generated from the following file: