mruby-task: rename mrb_tasks_run to mrb_task_run

follows mrb_{gem_name}_{operation} naming convention consistently
with other hal functions like mrb_task_hal_init. the plural form was
semantically correct but inconsistent with gem naming patterns.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-14 09:13:35 +09:00
parent 4fa51c8ea0
commit 6ff5c7bfa9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ void mrb_task_hal_idle_cpu(mrb_state *mrb);
* Core task scheduler API
*/
void mrb_tick(mrb_state *mrb);
mrb_value mrb_tasks_run(mrb_state *mrb);
mrb_value mrb_task_run(mrb_state *mrb);
void mrb_task_mark_all(mrb_state *mrb);
#endif /* MRUBY_TASK_H */
+2 -2
View File
@@ -430,7 +430,7 @@ mrb_tick(mrb_state *mrb)
/* Main scheduler loop */
mrb_value
mrb_tasks_run(mrb_state *mrb)
mrb_task_run(mrb_state *mrb)
{
mrb_task *t;
@@ -877,7 +877,7 @@ mrb_task_s_stat(mrb_state *mrb, mrb_value self)
static mrb_value
mrb_task_s_run(mrb_state *mrb, mrb_value self)
{
return mrb_tasks_run(mrb);
return mrb_task_run(mrb);
}
static mrb_value