about summary refs log tree commit diff
path: root/library/std/src/sync/once.rs
AgeCommit message (Collapse)AuthorLines
2021-02-04Stabilize poison API of Once, rename poisoned()Martin Habovstiak-13/+7
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-12-22Fix documentation typoLinus Färnstrand-1/+1
2020-12-22Migrate standard library away from compare_and_swapLinus Färnstrand-5/+11
2020-09-20Fix nitsAlexis Bourget-2/+1
2020-09-18Finish moving to intra doc links for std::syncAlexis Bourget-36/+26
2020-09-12Mark Once::new as #[inline].Mara Bos-0/+1
Without this, it was not inlined in SyncOnceCell::into_inner(), causing unecessary checks and dead code.
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-120/+3
Also doing fmt inplace as requested.
2020-08-02fix typosliuzhenyu-1/+1
2020-07-27mv std libs to library/mark-0/+690