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

Tinythread is probably not thread safe #2

Open
jfinkhaeuser opened this issue Mar 28, 2012 · 0 comments
Open

Tinythread is probably not thread safe #2

jfinkhaeuser opened this issue Mar 28, 2012 · 0 comments

Comments

@jfinkhaeuser
Copy link
Contributor

Kind of hard to establish without a thorough review, but see rev 606e58f for reference.

Basically, any flag in tthread classes that can be accessed from multiple threads must be declared volatile, and must be smaller or as large as a pointer. It's probably best to just use size_t, as that's guaranteed to be the same size as a pointer.

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

No branches or pull requests

1 participant