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

[atomics] Make notify_one nondeterministic #6502

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

languagelawyer
Copy link
Contributor

@languagelawyer languagelawyer commented Aug 22, 2023

See #6501 for explanation

Affects:
[atomics.ref.ops]
[atomics.types.operations]
[util.smartptr.atomic.shared]
[util.smartptr.atomic.weak]
[atomics.flag]

Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This particular choice of words seems to be ambiguous. This sounds as if there is something unspecified about an "atomic waiting operation", but that's not the point here.

It's the choice among the eligible ones that is unspecified.

Something like "of an unspecified one among the atomic waiting opeations that are ..."
but that loses the "at least one" property.

Maybe having a generic sentence in [atomics.wait] about how the choice during unblocking is unspecified (both the number of unblocked operations and the choice which ones is unspecified).

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