Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Attributes | List of all members
apollo::prediction::BaseThreadPool Class Reference

#include <prediction_thread_pool.h>

Inheritance diagram for apollo::prediction::BaseThreadPool:
Inheritance graph
Collaboration diagram for apollo::prediction::BaseThreadPool:
Collaboration graph

Public Member Functions

 BaseThreadPool (int thread_num, int next_thread_pool_level)
 
void Stop ()
 
 ~BaseThreadPool ()
 
template<typename InputIter , typename F >
void ForEach (InputIter begin, InputIter end, F f)
 
template<typename FuncType >
std::future< typename std::result_of< FuncType()>::type > Post (FuncType &&func)
 

Static Public Attributes

static std::vector< int > THREAD_POOL_CAPACITY
 

Constructor & Destructor Documentation

◆ BaseThreadPool()

apollo::prediction::BaseThreadPool::BaseThreadPool ( int  thread_num,
int  next_thread_pool_level 
)

◆ ~BaseThreadPool()

apollo::prediction::BaseThreadPool::~BaseThreadPool ( )

Member Function Documentation

◆ ForEach()

template<typename InputIter , typename F >
void apollo::prediction::BaseThreadPool::ForEach ( InputIter  begin,
InputIter  end,
f 
)
inline

◆ Post()

template<typename FuncType >
std::future<typename std::result_of<FuncType()>::type> apollo::prediction::BaseThreadPool::Post ( FuncType &&  func)
inline

◆ Stop()

void apollo::prediction::BaseThreadPool::Stop ( )

Member Data Documentation

◆ THREAD_POOL_CAPACITY

std::vector<int> apollo::prediction::BaseThreadPool::THREAD_POOL_CAPACITY
static

The documentation for this class was generated from the following file: