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

proposal: sync/atomic: Add atomic work with "int", "uint" type. #54168

Closed
rekby opened this issue Aug 1, 2022 · 1 comment
Closed

proposal: sync/atomic: Add atomic work with "int", "uint" type. #54168

rekby opened this issue Aug 1, 2022 · 1 comment

Comments

@rekby
Copy link

rekby commented Aug 1, 2022

Now sync package contains API for atomic work with fixed size type only.

Sometime I need atomic work with int type (for example change index to array), now it need force save index to int64 + typecast every time after usage.

It will perfect to atomic work with int directly.

@rekby rekby added the Proposal label Aug 1, 2022
@gopherbot gopherbot added this to the Proposal milestone Aug 1, 2022
@seankhliao
Copy link
Member

Duplicate of #5721

@seankhliao seankhliao marked this as a duplicate of #5721 Aug 1, 2022
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
@golang golang locked and limited conversation to collaborators Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants