This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
library/std/src/sync/mpsc Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 88//! method, and see the method for more information about it. Due to this
99//! caveat, this queue might not be appropriate for all use-cases.
1010
11- // https://www.1024cores.net/home/lock-free-algorithms
12- // /queues/non-intrusive-mpsc-node-based-queue
11+ // The original implementation is based off:
12+ // https://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-queue
13+ //
14+ // Note that back when the code was imported, it was licensed under the BSD-2-Clause license:
15+ // http://web.archive.org/web/20110411011612/https://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
16+ //
17+ // The original author of the code agreed to relicense it under `MIT OR Apache-2.0` in 2017, so as
18+ // of today the license of this file is the same as the rest of the codebase:
19+ // https://github.com/rust-lang/rust/pull/42149
1320
1421#[ cfg( all( test, not( target_os = "emscripten" ) ) ) ]
1522mod tests;
Original file line number Diff line number Diff line change 44//! concurrently between two threads. This data structure is safe to use and
55//! enforces the semantics that there is one pusher and one popper.
66
7+ // The original implementation is based off:
78// https://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
9+ //
10+ // Note that back when the code was imported, it was licensed under the BSD-2-Clause license:
11+ // http://web.archive.org/web/20110411011612/https://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
12+ //
13+ // The original author of the code agreed to relicense it under `MIT OR Apache-2.0` in 2017, so as
14+ // of today the license of this file is the same as the rest of the codebase:
15+ // https://github.com/rust-lang/rust/pull/42149
816
917#[ cfg( all( test, not( target_os = "emscripten" ) ) ) ]
1018mod tests;
You can’t perform that action at this time.
0 commit comments