Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::cyber::base::ThreadPool Class Reference

#include <thread_pool.h>

Collaboration diagram for apollo::cyber::base::ThreadPool:
Collaboration graph

Public Member Functions

 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 ()
 

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ 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: