mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
1b69b33a4e
implement core scheduling components: - mrb_tick: tick handler for timeslice countdown and sleep wakeup - mrb_tasks_run: main scheduler loop with context switching - sleep operations: sleep_ms_impl, sleep, sleep_ms - hal stub implementations for compilation (temporary) the scheduler uses tick-based preemption with round-robin at same priority. sleeping tasks wake when their tick count expires. completed tasks move to dormant queue and wake any waiting joiners. Co-authored-by: Claude <noreply@anthropic.com>