|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
线程化动作节点包装类。 More...
#include <nbt.h>
Public Member Functions | |
| nbt_threaded_action_node (const std::string &aname, const BT::NodeConfig &aconfig, nbt_node_callback< TACTOR > afun) | |
| 构造函数。 | |
| nbt_status | tick () override |
| 执行线程化tick。 | |
线程化动作节点包装类。
继承自BT::ThreadedAction,在独立线程上运行tick()。 回调函数必须定期检查节点的isHaltRequested(),收到中止请求时及时返回。
| TACTOR | Actor类型 |
|
inline |
构造函数。
| aname | 节点实例名称 |
| aconfig | 节点配置 |
| afun | 线程化回调函数 |
|
inlineoverride |
执行线程化tick。
在独立线程中调用回调函数。