Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add volatile keyword for optimizing compiler #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wluker
Copy link

@wluker wluker commented Feb 27, 2020

This takes care of issue #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?

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant