Apollo 10.0
自动驾驶开放平台
apollo::prediction::PredictionThreadPool类 参考

#include <prediction_thread_pool.h>

apollo::prediction::PredictionThreadPool 的协作图:

静态 Public 成员函数

static BaseThreadPoolInstance ()
 
template<typename InputIter , typename F >
static void ForEach (InputIter begin, InputIter end, F f)
 

静态 Public 属性

static thread_local int s_thread_pool_level = 0
 

详细描述

在文件 prediction_thread_pool.h100 行定义.

成员函数说明

◆ ForEach()

template<typename InputIter , typename F >
static void apollo::prediction::PredictionThreadPool::ForEach ( InputIter  begin,
InputIter  end,
f 
)
inlinestatic

在文件 prediction_thread_pool.h107 行定义.

107 {
108 Instance()->ForEach(begin, end, f);
109 }
double f
void ForEach(InputIter begin, InputIter end, F f)

◆ Instance()

BaseThreadPool * apollo::prediction::PredictionThreadPool::Instance ( )
static

在文件 prediction_thread_pool.cc62 行定义.

62 {
63 int pool_level = s_thread_pool_level;
64 int max_thread_pool_level =
65 static_cast<int>(BaseThreadPool::THREAD_POOL_CAPACITY.size());
66 CHECK_LT(pool_level, max_thread_pool_level);
67 int index = s_thread_pool_level;
68 switch (index) {
69 case 0: {
71 }
72 case 1: {
74 }
75 case 2: {
77 }
78 }
79 AERROR << "Should not hit here";
81}
static std::vector< int > THREAD_POOL_CAPACITY
#define AERROR
Definition log.h:44

类成员变量说明

◆ s_thread_pool_level

thread_local int apollo::prediction::PredictionThreadPool::s_thread_pool_level = 0
static

在文件 prediction_thread_pool.h104 行定义.


该类的文档由以下文件生成: