diff options
| author | Steven Fackler <sfackler@gmail.com> | 2015-01-10 13:42:48 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2015-01-11 11:47:44 -0800 |
| commit | 8b6cda3ce681d4d95c3097d12ed754975b4a07f6 (patch) | |
| tree | 8d81e1972bcde3ad102209dc9560bf07735995f2 /src/libstd/sync/mpsc/spsc_queue.rs | |
| parent | 099b411e080d302ec0dc5f3aebe53d76c50acfc7 (diff) | |
| download | rust-8b6cda3ce681d4d95c3097d12ed754975b4a07f6.tar.gz rust-8b6cda3ce681d4d95c3097d12ed754975b4a07f6.zip | |
Rename AtomicInt and AtomicUint
Change any use of AtomicInt to AtomicIsize and AtomicUint to AtomicUsize Closes #20893 [breaking-change]
Diffstat (limited to 'src/libstd/sync/mpsc/spsc_queue.rs')
| -rw-r--r-- | src/libstd/sync/mpsc/spsc_queue.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/sync/mpsc/spsc_queue.rs b/src/libstd/sync/mpsc/spsc_queue.rs index 46c69f6f547..34fd6bb70dc 100644 --- a/src/libstd/sync/mpsc/spsc_queue.rs +++ b/src/libstd/sync/mpsc/spsc_queue.rs @@ -41,7 +41,7 @@ use alloc::boxed::Box; use core::mem; use core::cell::UnsafeCell; -use sync::atomic::{AtomicPtr, AtomicUint, Ordering}; +use sync::atomic::{AtomicPtr, AtomicUsize, Ordering}; // Node within the linked list queue of messages to send struct Node<T> { @@ -69,8 +69,8 @@ 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_additions: AtomicUint, - cache_subtractions: AtomicUint, + cache_additions: AtomicUsize, + cache_subtractions: AtomicUsize, } unsafe impl<T: Send> Send for Queue<T> { } @@ -117,8 +117,8 @@ impl<T: Send> Queue<T> { first: UnsafeCell::new(n1), tail_copy: UnsafeCell::new(n1), cache_bound: bound, - cache_additions: AtomicUint::new(0), - cache_subtractions: AtomicUint::new(0), + cache_additions: AtomicUsize::new(0), + cache_subtractions: AtomicUsize::new(0), } } |
