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

make tsan happy with running(thr: Thread): bool proc #24603

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

elcritch
Copy link
Contributor

@elcritch elcritch commented Jan 6, 2025

ThreadSanitizer finds a race condition when calling myThread.running(). Using atomics makes ThreadSanitizer happy but isn't really necessary here IMHO. Still probably good to avoid false positives.

I'm not sure if import std/atomics can or should be used in typedthreads.nim. It'd be easy to switch to std/sysatomics though.

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