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

Shared atomics in async tasks #988

Open
Lindenk opened this issue Oct 23, 2024 · 0 comments
Open

Shared atomics in async tasks #988

Lindenk opened this issue Oct 23, 2024 · 0 comments

Comments

@Lindenk
Copy link

Lindenk commented Oct 23, 2024

You can still have local resources (being lock free). The thing is that async tasks at the same priority level might cause a race condition on non atomic shared lock free resources (as an effect of the cooperative multi tasking). Async tasks are no longer run-to-end.

Originally posted by @perlindgren in #838 (comment)

If this is the case, how do we use atomics in shared state in async tasks?

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