基于Boost.Asio的上下文 更多...
#include <ThreadPool.h>
类 carla::ThreadPool 继承关系图:
carla::ThreadPool 的协作图:Public 成员函数 | |
| void | AsyncRun () |
| void | AsyncRun (size_t worker_threads) |
| auto & | io_context () |
| template<typename FunctorT , typename ResultT = typename std::result_of<FunctorT()>::type> | |
| std::future< ResultT > | Post (FunctorT &&functor) |
| void | Run () |
| void | RunFor (time_duration duration) |
| void | Stop () |
| ThreadPool () | |
| ~ThreadPool () | |
| 停止线程池ThreadPool并合并所有线程 更多... | |
Private 属性 | |
| boost::asio::io_context | _io_context |
| boost::asio::io_context::work | _work_to_do |
| ThreadGroup | _workers |
额外继承的成员函数 | |
Private 成员函数 继承自 carla::NonCopyable | |
| NonCopyable ()=default | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable (NonCopyable &&)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
| NonCopyable & | operator= (NonCopyable &&)=delete |
基于Boost.Asio的上下文
在文件 ThreadPool.h 第 24 行定义.
|
inline |
在文件 ThreadPool.h 第 27 行定义.
|
inline |
|
inline |
|
inline |
在文件 ThreadPool.h 第 62 行定义.
引用了 _workers, carla::ThreadGroup::CreateThreads() , 以及 Run().
被这些函数引用 carla::streaming::Client::AsyncRun(), carla::streaming::Server::AsyncRun() , 以及 TEST().
函数调用图:
这是这个函数的调用关系图:
|
inline |
在文件 ThreadPool.h 第 35 行定义.
引用了 _io_context.
被这些函数引用 carla::streaming::Client::Subscribe().
这是这个函数的调用关系图:
|
inline |
在文件 ThreadPool.h 第 41 行定义.
引用了 _io_context , 以及 carla::MoveHandler().
被这些函数引用 TEST().
函数调用图:
这是这个函数的调用关系图:
|
inline |
在文件 ThreadPool.h 第 97 行定义.
引用了 _io_context.
被这些函数引用 AsyncRun(), carla::streaming::Client::Run() , 以及 carla::streaming::Server::Run().
这是这个函数的调用关系图:
|
inline |
|
inline |
在文件 ThreadPool.h 第 132 行定义.
引用了 _io_context, _workers , 以及 carla::ThreadGroup::JoinAll().
被这些函数引用 carla::streaming::Client::~Client(), carla::multigpu::Secondary::~Secondary(), carla::streaming::Server::~Server() , 以及 ~ThreadPool().
函数调用图:
这是这个函数的调用关系图:
|
private |
在文件 ThreadPool.h 第 150 行定义.
被这些函数引用 io_context(), Post(), Run(), RunFor() , 以及 Stop().
|
private |
在文件 ThreadPool.h 第 152 行定义.
|
private |
在文件 ThreadPool.h 第 156 行定义.
被这些函数引用 AsyncRun() , 以及 Stop().