runtime: move mainExited boolean

This variable is only necessary on the cooperative and none scheduler.
It is not used on the threads scheduler.

The reason for moving is that the upcoming multicore baremetal scheduler
also needs mainExited but of a different type: an atomic variable
instead of a plain boolean.
This commit is contained in:
Ayke van Laethem
2025-04-07 10:09:29 +02:00
committed by Ron Evans
parent 95ee572b4d
commit 3f8a110e4a
3 changed files with 6 additions and 2 deletions
-2
View File
@@ -4,8 +4,6 @@ import "internal/task"
const schedulerDebug = false
var mainExited bool
var timerQueue *timerNode
// Simple logging, for debugging.