diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-10-25 19:46:35 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-10-25 19:46:35 -0700 |
| commit | 1ce5081f4d7a8d636f67204e0e62fe0e9164b560 (patch) | |
| tree | 55cabc4b15ac348cf0d182ebfd153d81a716f6fc /src/libstd/rt | |
| parent | 49d9135eeaefc5ab267c2ee2bf1c28e245320709 (diff) | |
| download | rust-1ce5081f4d7a8d636f67204e0e62fe0e9164b560.tar.gz rust-1ce5081f4d7a8d636f67204e0e62fe0e9164b560.zip | |
Add links to original mpmc and mpsc implementations
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/mpmc_bounded_queue.rs | 2 | ||||
| -rw-r--r-- | src/libstd/rt/mpsc_queue.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/rt/mpmc_bounded_queue.rs b/src/libstd/rt/mpmc_bounded_queue.rs index a8ef5364276..2f61a433983 100644 --- a/src/libstd/rt/mpmc_bounded_queue.rs +++ b/src/libstd/rt/mpmc_bounded_queue.rs @@ -26,6 +26,8 @@ * policies, either expressed or implied, of Dmitry Vyukov. */ +// http://www.1024cores.net/home/lock-free-algorithms/queues/bounded-mpmc-queue + use unstable::sync::UnsafeArc; use unstable::atomics::{AtomicUint,Relaxed,Release,Acquire}; use option::*; diff --git a/src/libstd/rt/mpsc_queue.rs b/src/libstd/rt/mpsc_queue.rs index 38186aa7e8c..4ddd5e066cd 100644 --- a/src/libstd/rt/mpsc_queue.rs +++ b/src/libstd/rt/mpsc_queue.rs @@ -27,6 +27,7 @@ */ //! A mostly lock-free multi-producer, single consumer queue. +// http://www.1024cores.net/home/lock-free-algorithms/queues/intrusive-mpsc-node-based-queue use unstable::sync::UnsafeArc; use unstable::atomics::{AtomicPtr,Relaxed,Release,Acquire}; |
