3#include "libxr_def.hpp"
4#include "lockfree_list.hpp"
app_framework 的应用模块管理片段 Application-module management fragment of app_framework
virtual void OnMonitor()=0
周期性模块入口 Periodic module entry point
virtual ~Application()=default
虚析构函数 Virtual destructor
LibXR::LockFreeList app_list_
当前已注册模块链表 / List of currently registered modules.
void MonitorAll()
调用所有模块的 OnMonitor
void Register(Application &app)
注册一个应用模块
数据节点模板,继承自 BaseNode,用于存储具体数据类型。 Template data node that inherits from BaseNode to store specific data...
链表实现,用于存储和管理数据节点。 A linked list implementation for storing and managing data nodes.
ErrorCode Foreach(Func func)
遍历链表中的每个节点,并应用回调函数。 Iterates over each node in the list and applies a callback function.
void Add(BaseNode &data)
向链表添加一个节点。 Adds a node to the linked list.
uint32_t Size() noexcept
获取链表中的节点数量。 Gets the number of nodes in the linked list.
@ OK
操作成功 | Operation successful
constexpr size_t CACHE_LINE_SIZE
缓存行大小 / Cache line size