VLink  2.0.0
A high-performance communication middleware
vlink::RunablePluginInterface类 参考abstract

Abstract plugin base that already owns a MessageLoop event thread. 更多...

#include <runnable_plugin_interface.h>

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

Public 成员函数

virtual void on_init ()=0
 Called by the host once the plugin's MessageLoop is running. 更多...
 
virtual void on_deinit ()=0
 Called by the host just before the plugin is unloaded. 更多...
 

Protected 成员函数

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

额外继承的成员函数

 Internal queue implementation type. 更多...
 Back-pressure strategy applied when the bounded queue is at capacity. 更多...
 Built-in priority levels for kPriorityType loops; higher values dispatch first. 更多...

详细描述

Abstract plugin base that already owns a MessageLoop event thread.

The plugin inherits both the Plugin registration machinery and a MessageLoop, so it can post tasks, run timers and consume VLink subscriptions on its own thread. Lifecycle is split between on_init() (called once after the loop starts) and on_deinit() (called once before the loop is torn down).

构造及析构函数说明

◆ RunablePluginInterface()

vlink::RunablePluginInterface::RunablePluginInterface ( )
protecteddefault

◆ ~RunablePluginInterface()

vlink::RunablePluginInterface::~RunablePluginInterface ( )
overrideprotecteddefault

成员函数说明

◆ on_deinit()

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

Called by the host just before the plugin is unloaded.

Override to release every resource created in on_init(). After this call the host stops the loop and detaches the shared library.

◆ on_init()

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

Called by the host once the plugin's MessageLoop is running.

Override to create subscribers, timers and other primitives that require the loop to be alive. Runs on the caller's thread.


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