mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user