mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +00:00
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:
committed by
Ron Evans
parent
95ee572b4d
commit
3f8a110e4a
@@ -27,6 +27,9 @@ const hasScheduler = true
|
||||
// concurrency, it does not have parallelism.
|
||||
const hasParallelism = false
|
||||
|
||||
// Set to true after main.main returns.
|
||||
var mainExited bool
|
||||
|
||||
// Queues used by the scheduler.
|
||||
var (
|
||||
runqueue task.Queue
|
||||
|
||||
Reference in New Issue
Block a user