Skip to content

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