about summary refs log tree commit diff
path: root/src/libstd/sync/mpsc/spsc_queue.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-02-24 09:33:17 +0000
committerbors <bors@rust-lang.org>2015-02-24 09:33:17 +0000
commitdccdde4007c191aa8b8d9cfffb0c7d3509fa675e (patch)
treef4493e88a229c9622daf5389616001fd48d337c2 /src/libstd/sync/mpsc/spsc_queue.rs
parent0ef56da541a90c62801440702a3e3c009e5332be (diff)
parentb182cd7245a999ac702f88c89dcc28811d6fdf8a (diff)
downloadrust-dccdde4007c191aa8b8d9cfffb0c7d3509fa675e.tar.gz
rust-dccdde4007c191aa8b8d9cfffb0c7d3509fa675e.zip
Auto merge of #22755 - Manishearth:rollup, r=Manishearth
Diffstat (limited to 'src/libstd/sync/mpsc/spsc_queue.rs')
-rw-r--r--src/libstd/sync/mpsc/spsc_queue.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs
index 7b5c614536d..ce40fa2672a 100644
--- a/src/libstd/sync/mpsc/spsc_queue.rs
+++ b/src/libstd/sync/mpsc/spsc_queue.rs
@@ -69,7 +69,7 @@ pub struct Queue<T> {
 
     // Cache maintenance fields. Additions and subtractions are stored
     // separately in order to allow them to use nonatomic addition/subtraction.
-    cache_bound: uint,
+    cache_bound: usize,
     cache_additions: AtomicUsize,
     cache_subtractions: AtomicUsize,
 }
@@ -107,7 +107,7 @@ impl<T: Send> Queue<T> {
     ///               cache (if desired). If the value is 0, then the cache has
     ///               no bound. Otherwise, the cache will never grow larger than
     ///               `bound` (although the queue itself could be much larger.
-    pub unsafe fn new(bound: uint) -> Queue<T> {
+    pub unsafe fn new(bound: usize) -> Queue<T> {
         let n1 = Node::new();
         let n2 = Node::new();
         (*n1).next.store(n2, Ordering::Relaxed);
@@ -319,7 +319,7 @@ mod test {
             stress_bound(1);
         }
 
-        unsafe fn stress_bound(bound: uint) {
+        unsafe fn stress_bound(bound: usize) {
             let q = Arc::new(Queue::new(bound));
 
             let (tx, rx) = channel();