|
libxr
1.0
Want to be the best embedded framework
|
应用模块管理器 More...
#include <application.hpp>
Public Member Functions | |
| void | Register (Application &app) |
| 注册一个应用模块 | |
| void | MonitorAll () |
| 调用所有模块的 OnMonitor | |
| size_t | Size () |
| 获取模块数量 | |
Data Fields | |
| LibXR::LockFreeList | app_list_ |
| 当前已注册模块链表 / List of currently registered modules. | |
应用模块管理器
Manager for registering and updating application modules
Definition at line 42 of file application.hpp.
|
inline |
调用所有模块的 OnMonitor
Call OnMonitor for all registered modules
app_list_ 当下的链表遍历顺序调用。 No module execution order is guaranteed; the current implementation follows the list traversal order of app_list_ at the time of the call. Definition at line 71 of file application.hpp.
|
inline |
注册一个应用模块
Register an application module
| app | 模块实例引用 / Reference to an Application instance |
Definition at line 56 of file application.hpp.
|
inline |
获取模块数量
Get number of registered modules
Definition at line 87 of file application.hpp.
| LibXR::LockFreeList LibXR::ApplicationManager::app_list_ |
当前已注册模块链表 / List of currently registered modules.
Definition at line 45 of file application.hpp.