2024-09-14 12:18:26 +08:00
|
|
|
#include "module_manager_interna.h"
|
|
|
|
|
|
|
|
|
|
#include "stellar/utils.h"
|
|
|
|
|
#include <dlfcn.h>
|
|
|
|
|
#include <stdbool.h>
|
2024-09-19 16:51:03 +08:00
|
|
|
#include <assert.h>
|
2024-09-25 17:44:27 +08:00
|
|
|
#include <string.h>
|
2024-09-14 12:18:26 +08:00
|
|
|
|
|
|
|
|
|
2024-09-14 16:00:24 +08:00
|
|
|
/*******************************************
|
2024-09-29 14:18:20 +08:00
|
|
|
* module manager API *
|
2024-09-14 16:00:24 +08:00
|
|
|
*******************************************/
|
|
|
|
|
|
2024-09-27 19:09:50 +08:00
|
|
|
#include "toml/toml.h"
|
2024-09-14 16:00:24 +08:00
|
|
|
|
2024-11-25 19:22:41 +08:00
|
|
|
struct module_manager *module_manager_new(struct module_specification mod_specs[], size_t n_mod, int max_thread_num, struct mq_schema *mq_schema, struct logger *logger)
|
2024-09-14 16:00:24 +08:00
|
|
|
{
|
2024-09-27 19:36:14 +08:00
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
struct module_manager *mod_mgr = CALLOC(struct module_manager, 1);
|
2024-09-27 19:36:14 +08:00
|
|
|
mod_mgr->schema.max_thread_num=max_thread_num;
|
|
|
|
|
mod_mgr->schema.mq_schema=mq_schema;
|
2024-09-29 14:23:26 +08:00
|
|
|
mod_mgr->schema.logger=logger;
|
2024-09-29 14:18:20 +08:00
|
|
|
|
|
|
|
|
int mod_num = 0;
|
2024-09-27 19:09:50 +08:00
|
|
|
toml_table_t *conf = toml_parse_file(fp, NULL, 0);
|
2024-09-14 12:18:26 +08:00
|
|
|
toml_array_t* mod_array = toml_array_in(conf, "module");
|
2024-09-27 19:36:14 +08:00
|
|
|
|
2024-09-29 14:18:20 +08:00
|
|
|
if(mod_array==NULL)goto MODULE_SPEC_LOAD_END;
|
2024-09-27 19:36:14 +08:00
|
|
|
|
2024-09-25 17:44:27 +08:00
|
|
|
mod_num = toml_array_nelem(mod_array);
|
2024-09-27 19:36:14 +08:00
|
|
|
mod_mgr->module_specs = CALLOC(struct module_spec_load, mod_num);
|
2024-09-14 12:18:26 +08:00
|
|
|
|
2024-09-27 19:36:14 +08:00
|
|
|
// TODO: store module specific in hash
|
2024-09-25 17:44:27 +08:00
|
|
|
for (int i = 0; i < mod_num; i++) {
|
2024-09-14 12:18:26 +08:00
|
|
|
toml_table_t* toml_mod = toml_table_at(mod_array, i);
|
|
|
|
|
|
|
|
|
|
const char *path_raw = toml_raw_in(toml_mod, "path");
|
|
|
|
|
const char *init_func_name_raw = toml_raw_in(toml_mod, "init");
|
|
|
|
|
const char *exit_func_name_raw = toml_raw_in(toml_mod, "exit");
|
2024-10-18 15:02:36 +08:00
|
|
|
const char *thread_init_func_name_raw = toml_raw_in(toml_mod, "thread_init");
|
|
|
|
|
const char *thread_exit_func_name_raw = toml_raw_in(toml_mod, "thread_exit");
|
|
|
|
|
|
|
|
|
|
toml_rtos(path_raw, &mod_mgr->module_specs[i].path);
|
|
|
|
|
toml_rtos(init_func_name_raw, &mod_mgr->module_specs[i].instance_init_cb_name);
|
|
|
|
|
toml_rtos(exit_func_name_raw, &mod_mgr->module_specs[i].instance_exit_cb_name);
|
|
|
|
|
toml_rtos(thread_init_func_name_raw, &mod_mgr->module_specs[i].thread_init_cb_name);
|
|
|
|
|
toml_rtos(thread_exit_func_name_raw, &mod_mgr->module_specs[i].thread_exit_cb_name);
|
|
|
|
|
|
|
|
|
|
void* handle = dlopen(mod_mgr->module_specs[i].path, RTLD_NOW|RTLD_LAZY|RTLD_GLOBAL);
|
2024-09-14 12:18:26 +08:00
|
|
|
if (!handle) {
|
2024-10-18 15:02:36 +08:00
|
|
|
fprintf(stderr, "Error loading module %s: %s\n", mod_mgr->module_specs[i].path, dlerror());
|
|
|
|
|
break;
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
2024-10-18 15:02:36 +08:00
|
|
|
if (mod_mgr->module_specs[i].instance_init_cb_name)
|
2024-09-27 19:09:50 +08:00
|
|
|
{
|
2024-10-18 15:02:36 +08:00
|
|
|
mod_mgr->module_specs[i].on_instance_init_cb =
|
|
|
|
|
(module_on_instance_init_func *)dlsym(handle, mod_mgr->module_specs[i].instance_init_cb_name);
|
|
|
|
|
if (mod_mgr->module_specs[i].on_instance_init_cb)
|
2024-09-27 19:09:50 +08:00
|
|
|
{
|
2024-10-18 15:02:36 +08:00
|
|
|
mod_mgr->module_specs[i].mod = mod_mgr->module_specs[i].on_instance_init_cb(mod_mgr);
|
2024-11-05 09:39:10 +08:00
|
|
|
if (module_manager_get_module(mod_mgr, mod_mgr->module_specs[i].mod->name) == NULL)
|
2024-10-18 15:02:36 +08:00
|
|
|
{
|
|
|
|
|
mod_mgr->module_specs[i].init_succ = true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
fprintf(stderr, "Module %s already exists\n", mod_mgr->module_specs[i].mod->name);
|
|
|
|
|
if (mod_mgr->module_specs[i].on_instance_exit_cb)
|
|
|
|
|
mod_mgr->module_specs[i].on_instance_exit_cb(mod_mgr, mod_mgr->module_specs[i].mod);
|
|
|
|
|
}
|
2024-09-27 19:09:50 +08:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2024-10-18 15:02:36 +08:00
|
|
|
fprintf(stderr, "Could not load init function %s: %s\n", mod_mgr->module_specs[i].instance_init_cb_name, dlerror());
|
2024-09-27 19:09:50 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-10-18 15:02:36 +08:00
|
|
|
if (mod_mgr->module_specs[i].instance_exit_cb_name)
|
2024-09-27 19:09:50 +08:00
|
|
|
{
|
2024-10-18 15:02:36 +08:00
|
|
|
mod_mgr->module_specs[i].on_instance_exit_cb =
|
|
|
|
|
(module_on_instance_exit_func *)dlsym(handle, mod_mgr->module_specs[i].instance_exit_cb_name);
|
|
|
|
|
if (!mod_mgr->module_specs[i].on_instance_exit_cb)
|
|
|
|
|
{
|
|
|
|
|
fprintf(stderr, "Could not load exit function %s: %s\n", mod_mgr->module_specs[i].instance_exit_cb_name, dlerror());
|
|
|
|
|
}
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
|
|
|
|
|
2024-10-18 15:02:36 +08:00
|
|
|
if (mod_mgr->module_specs[i].thread_init_cb_name)
|
|
|
|
|
{
|
|
|
|
|
mod_mgr->module_specs[i].on_thread_init_cb =
|
|
|
|
|
(module_on_thread_init_func *)dlsym(handle, mod_mgr->module_specs[i].thread_init_cb_name);
|
|
|
|
|
if (!mod_mgr->module_specs[i].on_thread_init_cb)
|
|
|
|
|
{
|
|
|
|
|
fprintf(stderr, "Could not load init function %s: %s\n", mod_mgr->module_specs[i].thread_init_cb_name, dlerror());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mod_mgr->module_specs[i].thread_exit_cb_name)
|
|
|
|
|
{
|
|
|
|
|
mod_mgr->module_specs[i].on_thread_exit_cb =
|
|
|
|
|
(module_on_thread_exit_func *)dlsym(handle, mod_mgr->module_specs[i].thread_exit_cb_name);
|
|
|
|
|
if (!mod_mgr->module_specs[i].on_thread_exit_cb)
|
|
|
|
|
{
|
|
|
|
|
fprintf(stderr, "Could not load exit function %s: %s\n", mod_mgr->module_specs[i].thread_exit_cb_name, dlerror());
|
|
|
|
|
}
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
2024-09-29 14:18:20 +08:00
|
|
|
mod_mgr->load_module_num+=1;
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
2024-09-27 19:36:14 +08:00
|
|
|
|
2024-09-29 14:18:20 +08:00
|
|
|
MODULE_SPEC_LOAD_END:
|
2024-09-27 19:09:50 +08:00
|
|
|
|
2024-09-29 14:18:20 +08:00
|
|
|
assert(mod_mgr->load_module_num==mod_num);
|
2024-09-14 12:18:26 +08:00
|
|
|
|
2024-09-29 14:18:20 +08:00
|
|
|
if(conf )toml_free(conf);
|
2024-09-27 19:09:50 +08:00
|
|
|
if(fp)fclose(fp);
|
2024-09-14 16:00:24 +08:00
|
|
|
return mod_mgr;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-29 14:18:20 +08:00
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_manager_free(struct module_manager *mod_mgr)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr==NULL)return;
|
2024-09-19 15:58:39 +08:00
|
|
|
if(mod_mgr->module_spec_toml_path)FREE(mod_mgr->module_spec_toml_path);
|
2024-09-27 19:09:50 +08:00
|
|
|
if (mod_mgr->module_specs)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
2024-09-27 19:09:50 +08:00
|
|
|
for (int i = 0; i < mod_mgr->load_module_num; i++)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
2024-10-18 15:02:36 +08:00
|
|
|
if (mod_mgr->module_specs[i].on_instance_exit_cb != NULL &&
|
|
|
|
|
mod_mgr->module_specs[i].init_succ)
|
2024-09-25 17:44:27 +08:00
|
|
|
{
|
2024-10-18 15:02:36 +08:00
|
|
|
mod_mgr->module_specs[i].on_instance_exit_cb(mod_mgr, mod_mgr->module_specs[i].mod);
|
2024-09-25 17:44:27 +08:00
|
|
|
}
|
2024-09-27 19:09:50 +08:00
|
|
|
if(mod_mgr->module_specs[i].path)FREE(mod_mgr->module_specs[i].path);
|
2024-10-18 15:02:36 +08:00
|
|
|
if(mod_mgr->module_specs[i].instance_init_cb_name)FREE(mod_mgr->module_specs[i].instance_init_cb_name);
|
|
|
|
|
if(mod_mgr->module_specs[i].instance_exit_cb_name)FREE(mod_mgr->module_specs[i].instance_exit_cb_name);
|
|
|
|
|
if(mod_mgr->module_specs[i].thread_init_cb_name)FREE(mod_mgr->module_specs[i].thread_init_cb_name);
|
|
|
|
|
if(mod_mgr->module_specs[i].thread_exit_cb_name)FREE(mod_mgr->module_specs[i].thread_exit_cb_name);
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
2024-09-27 19:09:50 +08:00
|
|
|
FREE(mod_mgr->module_specs);
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
2024-09-25 17:44:27 +08:00
|
|
|
FREE(mod_mgr);
|
2024-09-14 12:18:26 +08:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
int module_manager_get_max_thread_num(struct module_manager*mod_mgr)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr==NULL)return -1;
|
|
|
|
|
return mod_mgr->schema.max_thread_num;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
struct mq_schema *module_manager_get_mq_schema(struct module_manager *mod_mgr)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr==NULL)return NULL;
|
|
|
|
|
return mod_mgr->schema.mq_schema;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
struct logger *module_manager_get_logger(struct module_manager *mod_mgr)
|
2024-09-29 14:23:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr==NULL)return NULL;
|
|
|
|
|
return mod_mgr->schema.logger;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
const char *module_manager_get_toml_path(struct module_manager *mod_mgr)
|
2024-09-19 15:58:39 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr==NULL)return NULL;
|
|
|
|
|
return mod_mgr->module_spec_toml_path;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-14 12:18:26 +08:00
|
|
|
__thread int local_thread_id=-1;
|
|
|
|
|
__thread struct mq_runtime *local_mq_rt=NULL;
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
int module_manager_get_thread_id(struct module_manager* mod_mgr __unused)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
return local_thread_id;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
struct mq_runtime *module_manager_get_mq_runtime(struct module_manager *mod_mgr __unused)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
return local_mq_rt;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_manager_register_thread(struct module_manager* mod_mgr, int thread_id, struct mq_runtime *mq_rt)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
local_thread_id=thread_id;
|
|
|
|
|
local_mq_rt=mq_rt;
|
2024-10-18 15:02:36 +08:00
|
|
|
|
|
|
|
|
for(int i=0; i<mod_mgr->load_module_num; i++)
|
|
|
|
|
{
|
|
|
|
|
if(mod_mgr->module_specs[i].mod == NULL)break;
|
|
|
|
|
if(mod_mgr->module_specs[i].on_thread_init_cb && mod_mgr->module_specs[i].init_succ)
|
|
|
|
|
{
|
|
|
|
|
mod_mgr->module_specs[i].on_thread_init_cb(mod_mgr, thread_id, mod_mgr->module_specs[i].mod);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_manager_unregister_thread(struct module_manager *mod_mgr, int thread_id)
|
2024-10-18 15:02:36 +08:00
|
|
|
{
|
|
|
|
|
assert(local_thread_id==thread_id);
|
|
|
|
|
for(int i=0; i<mod_mgr->load_module_num; i++)
|
|
|
|
|
{
|
|
|
|
|
if(mod_mgr->module_specs[i].mod == NULL)break;
|
|
|
|
|
if(mod_mgr->module_specs[i].on_thread_exit_cb && mod_mgr->module_specs[i].init_succ)
|
|
|
|
|
{
|
|
|
|
|
mod_mgr->module_specs[i].on_thread_exit_cb(mod_mgr, thread_id, mod_mgr->module_specs[i].mod);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
local_thread_id=-1;
|
|
|
|
|
local_mq_rt=NULL;
|
2024-09-14 12:18:26 +08:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
struct module *module_manager_get_module(struct module_manager *mod_mgr, const char *module_name)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
2024-09-14 16:00:24 +08:00
|
|
|
if(mod_mgr==NULL || module_name == NULL)return NULL;
|
2024-09-27 19:09:50 +08:00
|
|
|
if (mod_mgr->module_specs)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
2024-09-27 19:09:50 +08:00
|
|
|
for(int i=0; i<mod_mgr->load_module_num; i++)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
2024-09-27 19:09:50 +08:00
|
|
|
if(mod_mgr->module_specs[i].mod == NULL)break;
|
2024-10-18 15:02:36 +08:00
|
|
|
if(strcmp(mod_mgr->module_specs[i].mod->name, module_name)==0 && mod_mgr->module_specs[i].init_succ)
|
2024-09-25 17:44:27 +08:00
|
|
|
{
|
2024-09-27 19:09:50 +08:00
|
|
|
return mod_mgr->module_specs[i].mod;
|
2024-09-25 17:44:27 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-09-14 12:18:26 +08:00
|
|
|
}
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*******************************************
|
|
|
|
|
* stellar module API *
|
|
|
|
|
*******************************************/
|
|
|
|
|
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
struct module *module_new(const char *name, void *ctx)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
2024-11-05 09:39:10 +08:00
|
|
|
struct module *mod = CALLOC(struct module, 1);
|
2024-09-14 17:41:07 +08:00
|
|
|
memcpy(mod->name, name, MIN(NAME_MAX, strlen(name)));
|
2024-09-19 15:58:39 +08:00
|
|
|
mod->module_ctx=ctx;
|
2024-09-14 12:18:26 +08:00
|
|
|
return mod;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_free(struct module *mod)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod==NULL)return;
|
|
|
|
|
FREE(mod);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void * module_get_ctx(struct module *mod)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod==NULL)return NULL;
|
|
|
|
|
return mod->module_ctx;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_set_ctx(struct module *mod, void *ctx)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod==NULL)return;
|
|
|
|
|
mod->module_ctx=ctx;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
const char *module_get_name(struct module* mod)
|
2024-09-14 12:18:26 +08:00
|
|
|
{
|
|
|
|
|
if(mod==NULL)return NULL;
|
|
|
|
|
return mod->name;
|
|
|
|
|
}
|
2024-09-14 16:00:24 +08:00
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_set_name(struct module* mod, const char *name)
|
2024-09-14 16:00:24 +08:00
|
|
|
{
|
|
|
|
|
if(mod==NULL)return;
|
2024-09-14 17:41:07 +08:00
|
|
|
memcpy(mod->name, name, MIN(NAME_MAX, strlen(name)));
|
2024-09-14 16:00:24 +08:00
|
|
|
return;
|
2024-09-25 17:44:27 +08:00
|
|
|
}
|
|
|
|
|
|
2024-10-18 11:16:42 +08:00
|
|
|
/*******************************************
|
|
|
|
|
* polling API *
|
|
|
|
|
*******************************************/
|
|
|
|
|
|
|
|
|
|
#define TOPIC_POLLING "polling"
|
|
|
|
|
|
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wcast-function-type"
|
|
|
|
|
static void on_polling_dispatch(int topic_id __unused,
|
|
|
|
|
void *msg __unused,
|
|
|
|
|
on_msg_cb_func* on_msg_cb,
|
|
|
|
|
void *on_msg_cb_arg,
|
|
|
|
|
void *dispatch_arg)
|
|
|
|
|
{
|
2024-11-05 09:39:10 +08:00
|
|
|
struct module_manager *mod_mgr=(struct module_manager *)dispatch_arg;
|
2024-10-18 11:16:42 +08:00
|
|
|
module_on_polling_func *polling = (module_on_polling_func *)on_msg_cb;
|
|
|
|
|
polling(mod_mgr, on_msg_cb_arg);
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
int module_manager_polling_subscribe(struct module_manager *mod_mgr, module_on_polling_func on_polling, void *polling_arg)
|
2024-10-18 11:16:42 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr == NULL)return -1;
|
2024-11-05 09:39:10 +08:00
|
|
|
mod_mgr->topic_polling_id=mq_schema_get_topic_id(module_manager_get_mq_schema(mod_mgr), TOPIC_POLLING);
|
2024-10-18 11:16:42 +08:00
|
|
|
if(mod_mgr->topic_polling_id<0)
|
|
|
|
|
{
|
|
|
|
|
mod_mgr->topic_polling_id=mq_schema_create_topic(mod_mgr->schema.mq_schema, TOPIC_POLLING, on_polling_dispatch, mod_mgr, NULL, NULL);
|
|
|
|
|
}
|
|
|
|
|
return mq_schema_subscribe(mod_mgr->schema.mq_schema, mod_mgr->topic_polling_id, (on_msg_cb_func *)on_polling, polling_arg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void module_manager_polling_active(struct module_manager *mod_mgr)
|
2024-10-18 11:16:42 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr == NULL)return;
|
|
|
|
|
mq_runtime_publish_message(local_mq_rt, mod_mgr->topic_polling_id, NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-11-05 09:39:10 +08:00
|
|
|
void stellar_polling_dispatch(struct module_manager *mod_mgr)
|
2024-10-18 11:16:42 +08:00
|
|
|
{
|
|
|
|
|
if(mod_mgr==NULL)return;
|
2024-11-05 09:39:10 +08:00
|
|
|
module_manager_polling_active(mod_mgr);
|
2024-10-18 11:16:42 +08:00
|
|
|
mq_runtime_dispatch(local_mq_rt);
|
|
|
|
|
return;
|
|
|
|
|
}
|