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

Expose atomic update to current stage #2

Merged
merged 4 commits into from
Sep 11, 2023

Conversation

willmurphyscode
Copy link
Contributor

The stager is often used in different go routines. The lack of an atomic setter was forcing clients to either manager their own locks or accept a minor race condition.

Here's an example of what it would look like to use these changes:

Happy for feedback on names, mechanism, etc.

The stager is often used in different go routines. The lack of an atomic
setter was forcing clients to either manager their own locks or accept a
minor race condition.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
@wagoodman wagoodman merged commit cf810b7 into wagoodman:master Sep 11, 2023
@willmurphyscode willmurphyscode deleted the fix-race-on-current-stage branch September 11, 2023 17:21
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