mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
dda60ca719
extend mrb_fiber_state enum with task-specific states: - MRB_TASK_CREATED: task context initialized - MRB_TASK_STOPPED: task execution finished add mrb_task_state structure to mrb_state: - task queues array (dormant, ready, waiting, suspended) - tick counter for scheduling - wakeup_tick for sleep timing - switching flag for context switches remove duplicate mrb_task_state definition from task.h since it is now defined in include/mruby.h. all changes guarded by MRB_USE_TASK_SCHEDULER for zero overhead when disabled. Co-authored-by: Claude <noreply@anthropic.com>