You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This takes care of issue ceu-lang#146 , but there are probably other areas that still might need to be protected from being optimized away.
For example, should the volatile keyword be added to any variables declared in the main thread, but made visible to the child thread?
And then there is the assignment in the child thread:
`_ceu_mem->_trails[2].evt.id = CEU_INPUT__NONE;`
Does that ever need to be protected?
The async/thread example at https://github.com/ceu-lang/ceu/blob/master/samples/test-03.ceu works with default compiler settings, but doesn't work when optimization is turned on
-O1
./tmp/test-03
works as expected, but change -O0 to -O1 and ceu starts the thread, but the main ceu loop then blocksThe text was updated successfully, but these errors were encountered: