VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::RunablePluginInterface类 参考abstract

Abstract plugin interface that provides its own MessageLoop event thread. 更多...

#include <runnable_plugin_interface.h>

类 vlink::RunablePluginInterface 继承关系图:
vlink::RunablePluginInterface 的协作图:

Public 成员函数

virtual void on_init ()=0
 Called by the host after the plugin's event loop has started.
virtual void on_deinit ()=0
 Called by the host before the plugin is unloaded.

Protected 成员函数

 RunablePluginInterface ()=default
 ~RunablePluginInterface () override=default

额外继承的成员函数

 Queue implementation type. 更多...
 Idle strategy controlling CPU and latency trade-offs. 更多...
 Pre-defined task priority levels for kPriorityType loops. 更多...

详细描述

Abstract plugin interface that provides its own MessageLoop event thread.

The plugin owns a MessageLoop and implements on_init() / on_deinit() for lifecycle management. The host is responsible for calling async_run() after loading.

构造及析构函数说明

◆ RunablePluginInterface()

vlink::RunablePluginInterface::RunablePluginInterface ( )
protecteddefault
这是这个函数的调用关系图:

◆ ~RunablePluginInterface()

vlink::RunablePluginInterface::~RunablePluginInterface ( )
overrideprotecteddefault

成员函数说明

◆ on_deinit()

virtual void vlink::RunablePluginInterface::on_deinit ( )
pure virtual

Called by the host before the plugin is unloaded.

Implement this method to release all resources, cancel timers, and unsubscribe. After this call, the host will stop the event loop and unload the plugin.

函数调用图:

◆ on_init()

virtual void vlink::RunablePluginInterface::on_init ( )
pure virtual

Called by the host after the plugin's event loop has started.

Implement this method to create subscribers, timers, and other resources that require the loop to be running. This method is called on the caller's thread.


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