task_hal.h: remove non-HAL function declarations

removes mrb_tasks_run and mrb_task_mark_all from task_hal.h as these
are core scheduler functions, not HAL interface functions. only
mrb_tick remains as it must be called by HAL timer callbacks.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-14 08:49:32 +09:00
parent 9c100ab844
commit 4fa51c8ea0
+1 -24
View File
@@ -122,9 +122,7 @@ void mrb_task_disable_irq(void);
void mrb_task_hal_idle_cpu(mrb_state *mrb);
/*
* Core scheduler functions (implemented in task.c, called by HAL)
*
* These are provided by the core scheduler for HAL implementations to call.
* Core scheduler function (implemented in task.c, called by HAL)
*/
/**
@@ -141,25 +139,4 @@ void mrb_task_hal_idle_cpu(mrb_state *mrb);
*/
void mrb_tick(mrb_state *mrb);
/**
* Main scheduler loop - runs all tasks until completion
*
* Executes tasks in priority order until all tasks are dormant.
* Handles task switching, preemption, and idle states.
*
* @param mrb The mruby state containing the task scheduler
* @return mrb_nil_value() when all tasks complete
*/
mrb_value mrb_tasks_run(mrb_state *mrb);
/**
* Mark all tasks for garbage collection
*
* Called by the GC during marking phase to protect task objects
* and their associated data from collection.
*
* @param mrb The mruby state
*/
void mrb_task_mark_all(mrb_state *mrb);
#endif /* MRUBY_TASK_HAL_H */