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