Skip to content

sync/atomic: Implement new Swap and CompareAndSwap methods of Value. #1058

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
Sep 15, 2021

Conversation

nevkontakte
Copy link
Member

Since JavaScript runtime is single-threaded, there isn't much special
logic to be done. However, it is important that all these functions
never call anything potentially blocking to make sure the goroutine is
not interrupted in a middle of an atomic operation.

Since JavaScript runtime is single-threaded, there isn't much special
logic to be done. However, it is important that all these functions
never call anything potentially blocking to make sure the goroutine is
not interrupted in a middle of an atomic operation.
@nevkontakte nevkontakte requested a review from flimzy September 14, 2021 22:28
@nevkontakte nevkontakte merged commit d80c496 into gopherjs:wip-go1.17 Sep 15, 2021
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.

2 participants