mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Update mrbgems/mruby-task/src/task.c
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -460,9 +460,9 @@ mrb_task_run(mrb_state *mrb)
|
||||
/* No task ready - check if all tasks are done */
|
||||
if (!t) {
|
||||
mrb_task_disable_irq();
|
||||
mrb_bool exitting = !q_ready_ && !q_waiting_ && !q_suspended_;
|
||||
mrb_bool exiting = !q_ready_ && !q_waiting_ && !q_suspended_;
|
||||
mrb_task_enable_irq();
|
||||
if (exitting) {
|
||||
if (exiting) {
|
||||
/* All tasks are dormant - scheduler done */
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user