Skip to content

use atomics for started and activity flags #2019

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

Merged
merged 2 commits into from
Aug 9, 2025

Conversation

kumaraditya303
Copy link
Contributor

No description provided.

@nedbat
Copy link
Owner

nedbat commented Aug 8, 2025

@kumaraditya303 what do you think of #2020?

@kumaraditya303
Copy link
Contributor Author

what do you think of #2020?

I think using c11 atomics is definitely better than writing manual atomic platform dependent code if using newer msvc is not an issue, if you prefer it as well then I will update this PR based on that.

@nedbat
Copy link
Owner

nedbat commented Aug 9, 2025

#2020 does look better to me. As I've said elsewhere, I no basically nothing about the versions of compilers and so on. It seems to work in CI, so let's go with it.

@kumaraditya303
Copy link
Contributor Author

Okay, I have updated the PR to use c11 atomics.

@nedbat nedbat merged commit d968323 into nedbat:master Aug 9, 2025
46 checks passed
@nedbat nedbat mentioned this pull request Aug 9, 2025
@kumaraditya303 kumaraditya303 deleted the thread-safe-resume2 branch August 9, 2025 17:30
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.

3 participants