about summary refs log tree commit diff
path: root/library/std/src/sync/mpmc/array.rs
AgeCommit message (Collapse)AuthorLines
2025-04-27use generic Atomic type where possibleChristopher Durham-4/+4
in core/alloc/std only for now, and ignoring test files Co-authored-by: Pavel Grigorenko <GrigorenkoPV@ya.ru>
2024-11-18std: allow after-main use of synchronization primitivesjoboet-2/+4
By creating an unnamed thread handle when the actual one has already been destroyed, synchronization primitives using thread parking can be used even outside the Rust runtime. This also fixes an inefficiency in the queue-based `RwLock`: if `thread::current` was not initialized yet, it will create a new handle on every parking attempt without initializing `thread::current`. The private `current_or_unnamed` function introduced here fixes this.
2024-10-25library: consistently use American spelling for 'behavior'Ralf Jung-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+0
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-14std: Unsafe-wrap std::syncJubilee Young-9/+13
2023-03-14std: leak remaining messages in bounded channel if message destructor panicsjoboet-66/+42
2023-02-26std: disconnect senders before discarding messagesjoboet-4/+5
2023-02-17std: drop all messages in bounded channel when destroying the last receiverjoboet-25/+107
2023-01-14remove optimistic spinning from `mpsc::SyncSender`Ibraheem Ahmed-13/+5
2023-01-11rework and document backoff behavior of `sync::mpsc`Ibraheem Ahmed-7/+7
2022-12-05fix dupe word typosRageking8-1/+1
2022-11-09tidyIbraheem Ahmed-2/+2
2022-11-09spin less in `mpsc::SyncSender::send`Ibraheem Ahmed-1/+1
2022-11-09`sync::mpsc`: reload state after spinning on CAS failureIbraheem Ahmed-3/+3
2022-11-09remove extra spinning from `mpsc::Receiver::recv`Ibraheem Ahmed-13/+3
2022-11-09initial port of crossbeam-channelIbraheem Ahmed-0/+523