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

Support for "only store is exclusive" atomic variables #11481

Open
oakad opened this issue Feb 19, 2025 · 0 comments
Open

Support for "only store is exclusive" atomic variables #11481

oakad opened this issue Feb 19, 2025 · 0 comments
Labels
type: enhancement New feature or request

Comments

@oakad
Copy link

oakad commented Feb 19, 2025

Description

A rather common pattern in concurrent code is a use of atomic variable, that can be read outside of locked section but must be modified only inside the locked section. Examples of such usage are quite plentiful both in Go runtime and elsewhere in application software (one of the simplest such examples is implementation of sync.Once).

It will be very helpful is such use of atomic variables with locks could be expressed in checklocks annotations.

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

No response

@oakad oakad added the type: enhancement New feature or request label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant