modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
140 stars 25 forks source link

m3core: Fix startup problem. #984

Closed jaykrell closed 2 years ago

jaykrell commented 2 years ago

The problem is that ThreadPThread cannot import from Coroutine. Doing so changes the initialization order. ThreadPThread must initialize before Coroutine. The solution is just to declare CoroutineSupported in ThreadPThread, since it extern, it can be anywhere.