feat(polling manager): support polling manager

This commit is contained in:
yangwei
2024-09-25 18:18:02 +08:00
parent 7291db5969
commit 74f77f3411
11 changed files with 224 additions and 100 deletions

View File

@@ -37,11 +37,7 @@ int stellar_module_manager_get_max_thread_num(struct stellar_module_manager* mod
const char *stellar_module_manager_get_toml_path(struct stellar_module_manager *mod_mgr);
struct mq_schema *stellar_module_manager_get_mq_schema(struct stellar_module_manager *mod_mgr);
typedef void module_on_polling_func(struct stellar_module_manager* mod_mgr, void *polling_arg);
//return 0 if success, otherwise return -1.
int stellar_module_manager_polling_subscribe(struct stellar_module_manager* mod_mgr, module_on_polling_func on_polling, void *polling_arg);
void stellar_module_manager_polling_dispatch(struct stellar_module_manager *mod_mgr);
void stellar_module_manager_polling_active(struct stellar_module_manager *mod_mgr);
#ifdef __cplusplus
}