#include <thread_pool.h>
|
| ThreadPool (std::size_t thread_num, std::size_t max_task_num=1000) |
|
template<typename F , typename... Args> |
auto | Enqueue (F &&f, Args &&... args) -> std::future< typename std::result_of< F(Args...)>::type > |
|
| ~ThreadPool () |
|
◆ ThreadPool()
apollo::cyber::base::ThreadPool::ThreadPool |
( |
std::size_t |
thread_num, |
|
|
std::size_t |
max_task_num = 1000 |
|
) |
| |
|
inlineexplicit |
◆ ~ThreadPool()
apollo::cyber::base::ThreadPool::~ThreadPool |
( |
| ) |
|
|
inline |
◆ Enqueue()
template<typename F , typename... Args>
auto apollo::cyber::base::ThreadPool::Enqueue |
( |
F && |
f, |
|
|
Args &&... |
args |
|
) |
| -> std::future<typename std::result_of<F(Args...)>::type> |
The documentation for this class was generated from the following file: