NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
执行器

多态执行器抽象 更多...

执行器 的协作图:

class  neforce::executor
 多态执行器 更多...
struct  neforce::thread_pool_executor
 thread_pool 的轻量执行器适配器 更多...

函数

template<typename Executor>
void neforce::post (Executor &ex, function< void()> handler)
 向执行器投递 handler

详细描述

多态执行器抽象

函数说明

◆ post()

template<typename Executor>
void neforce::post ( Executor & ex,
function< void()> handler )

向执行器投递 handler

模板参数
Executor执行器类型
参数
ex执行器
handler要执行的 handler

统一的 post 语义,handler 在 ex 的上下文中异步执行。

在文件 executor.hpp112 行定义.

引用了 move() , 以及 post().

被这些函数引用 post().