about summary refs log tree commit diff
path: root/library/std/src/sync/once
AgeCommit message (Collapse)AuthorLines
2025-01-02Move some things to `std::sync::poison` and reexport them in `std::sync`Pavel Grigorenko-162/+0
2024-07-31std: fix busy-waiting in `Once::wait_force`, add more testsjoboet-0/+47
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+1
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2021-02-04Stabilize poison API of Once, rename poisoned()Martin Habovstiak-2/+2
This stabilizes: * `OnceState` * `OnceState::is_poisoned()` (previously named `poisoned()`) * `Once::call_once_force()` `poisoned()` was renamed because the new name is more clear as a few people agreed and nobody objected. Closes #33577
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+116
Also doing fmt inplace as requested.