Skip to content

race: DRY OnceNonZeroUsize::{init, set} and OnceNonZeroUsize::{get, get_or_try_init}.#281

Merged
matklad merged 2 commits intomatklad:masterfrom
briansmith:b/init-inner
Mar 28, 2025
Merged

race: DRY OnceNonZeroUsize::{init, set} and OnceNonZeroUsize::{get, get_or_try_init}.#281
matklad merged 2 commits intomatklad:masterfrom
briansmith:b/init-inner

Conversation

@briansmith
Copy link
Contributor

The current value must always be zero and the orderings must always be Release/Acquire. Make this clearer.

The `current` value must always be zero and the orderings must always
be `Release`/`Acquire`. Make this clearer.
The ordering must always be `Acquire`. Make this clearer.
@briansmith briansmith changed the title race: DRY OnceNonZeroUsize::{init, set}. race: DRY OnceNonZeroUsize::{init, set} and OnceNonZeroUsize::{get, get_or_try_init}`. Mar 27, 2025
@briansmith briansmith changed the title race: DRY OnceNonZeroUsize::{init, set} and OnceNonZeroUsize::{get, get_or_try_init}`. race: DRY OnceNonZeroUsize::{init, set} and OnceNonZeroUsize::{get, get_or_try_init}. Mar 28, 2025
@matklad matklad merged commit 2447a93 into matklad:master Mar 28, 2025
1 check passed
@briansmith briansmith deleted the b/init-inner branch March 31, 2025 21:07
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