🦄 refactor(module manager): rename polling API

This commit is contained in:
yangwei
2024-11-25 19:23:01 +08:00
parent ef5a65155b
commit 73a8402a09
7 changed files with 33 additions and 46 deletions

View File

@@ -222,8 +222,8 @@ struct test_module_polling_env
env->polling_count++;
if(env->polling_count%2==0)
{
module_manager_polling_active(mod_mgr);
env->polling_active_count++;
//module_manager_polling_active(mod_mgr);
//env->polling_active_count++;
}
}
@@ -242,7 +242,7 @@ TEST(module_manager, basic_polling_module) {
struct test_module_polling_env env={};
env.N_round=10;
module_manager_polling_subscribe(mod_mgr, test_module_on_polling, &env);
module_manager_register_polling_node(mod_mgr, test_module_on_polling, &env);
struct mq_runtime *mq_rt = mq_runtime_new(mq_schema);
module_manager_register_thread(mod_mgr, 1, mq_rt);