Apollo 10.0
自动驾驶开放平台
|
#include <scheduler.h>
Public 成员函数 | |
virtual | ~Scheduler () |
bool | CreateTask (const RoutineFactory &factory, const std::string &name) |
bool | CreateTask (std::function< void()> &&func, const std::string &name, std::shared_ptr< DataVisitorBase > visitor=nullptr) |
bool | NotifyTask (uint64_t crid) |
void | Shutdown () |
uint32_t | TaskPoolSize () |
virtual bool | RemoveTask (const std::string &name)=0 |
void | ProcessLevelResourceControl () |
void | SetInnerThreadAttr (const std::string &name, std::thread *thr) |
virtual bool | DispatchTask (const std::shared_ptr< CRoutine > &)=0 |
virtual bool | NotifyProcessor (uint64_t crid)=0 |
virtual bool | RemoveCRoutine (uint64_t crid)=0 |
void | CheckSchedStatus () |
void | SetInnerThreadConfs (const std::unordered_map< std::string, InnerThread > &confs) |
静态 Public 成员函数 | |
static Scheduler * | Instance () |
Protected 成员函数 | |
Scheduler () | |
Protected 属性 | |
AtomicRWLock | id_cr_lock_ |
AtomicHashMap< uint64_t, MutexWrapper * > | id_map_mutex_ |
std::mutex | cr_wl_mtx_ |
std::unordered_map< uint64_t, std::shared_ptr< CRoutine > > | id_cr_ |
std::vector< std::shared_ptr< ProcessorContext > > | pctxs_ |
std::vector< std::shared_ptr< Processor > > | processors_ |
std::unordered_map< std::string, InnerThread > | inner_thr_confs_ |
std::string | process_level_cpuset_ |
uint32_t | proc_num_ = 0 |
uint32_t | task_pool_size_ = 0 |
std::atomic< bool > | stop_ |
在文件 scheduler.h 第 58 行定义.
|
inlinevirtual |
在文件 scheduler.h 第 60 行定义.
|
inlineprotected |
在文件 scheduler.h 第 88 行定义.
void apollo::cyber::scheduler::Scheduler::CheckSchedStatus | ( | ) |
在文件 scheduler.cc 第 102 行定义.
bool apollo::cyber::scheduler::Scheduler::CreateTask | ( | const RoutineFactory & | factory, |
const std::string & | name | ||
) |
在文件 scheduler.cc 第 37 行定义.
bool apollo::cyber::scheduler::Scheduler::CreateTask | ( | std::function< void()> && | func, |
const std::string & | name, | ||
std::shared_ptr< DataVisitorBase > | visitor = nullptr |
||
) |
在文件 scheduler.cc 第 42 行定义.
|
pure virtual |
|
static |
|
pure virtual |
bool apollo::cyber::scheduler::Scheduler::NotifyTask | ( | uint64_t | crid | ) |
在文件 scheduler.cc 第 72 行定义.
void apollo::cyber::scheduler::Scheduler::ProcessLevelResourceControl | ( | ) |
在文件 scheduler.cc 第 79 行定义.
|
pure virtual |
|
pure virtual |
void apollo::cyber::scheduler::Scheduler::SetInnerThreadAttr | ( | const std::string & | name, |
std::thread * | thr | ||
) |
在文件 scheduler.cc 第 90 行定义.
|
inline |
在文件 scheduler.h 第 82 行定义.
void apollo::cyber::scheduler::Scheduler::Shutdown | ( | ) |
在文件 scheduler.cc 第 125 行定义.
|
inline |
在文件 scheduler.h 第 69 行定义.
|
protected |
在文件 scheduler.h 第 92 行定义.
|
protected |
在文件 scheduler.h 第 94 行定义.
|
protected |
在文件 scheduler.h 第 90 行定义.
|
protected |
在文件 scheduler.h 第 91 行定义.
|
protected |
在文件 scheduler.h 第 98 行定义.
|
protected |
在文件 scheduler.h 第 95 行定义.
|
protected |
在文件 scheduler.h 第 101 行定义.
|
protected |
在文件 scheduler.h 第 100 行定义.
|
protected |
在文件 scheduler.h 第 96 行定义.
|
protected |
在文件 scheduler.h 第 103 行定义.
|
protected |
在文件 scheduler.h 第 102 行定义.