diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-10 21:59:10 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-10 22:09:49 -0700 |
| commit | dae48a07f34dcf714b3b57029f4e03a0b95a269e (patch) | |
| tree | 4ced3fe4c6c167508f0f7d1308473dfec676846d /src/libsync/deque.rs | |
| parent | 1add4dedc131d5f98d82feafe80d92ed1f3f6d49 (diff) | |
| download | rust-dae48a07f34dcf714b3b57029f4e03a0b95a269e.tar.gz rust-dae48a07f34dcf714b3b57029f4e03a0b95a269e.zip | |
Register new snapshots
Also convert a number of `static mut` to just a plain old `static` and remove some unsafe blocks.
Diffstat (limited to 'src/libsync/deque.rs')
| -rw-r--r-- | src/libsync/deque.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsync/deque.rs b/src/libsync/deque.rs index 15c0c14b28a..33881629329 100644 --- a/src/libsync/deque.rs +++ b/src/libsync/deque.rs @@ -545,8 +545,8 @@ mod tests { fn stress() { static AMT: int = 100000; static NTHREADS: int = 8; - static mut DONE: AtomicBool = INIT_ATOMIC_BOOL; - static mut HITS: AtomicUint = INIT_ATOMIC_UINT; + static DONE: AtomicBool = INIT_ATOMIC_BOOL; + static HITS: AtomicUint = INIT_ATOMIC_UINT; let pool = BufferPool::<int>::new(); let (w, s) = pool.deque(); @@ -604,7 +604,7 @@ mod tests { fn no_starvation() { static AMT: int = 10000; static NTHREADS: int = 4; - static mut DONE: AtomicBool = INIT_ATOMIC_BOOL; + static DONE: AtomicBool = INIT_ATOMIC_BOOL; let pool = BufferPool::<(int, uint)>::new(); let (w, s) = pool.deque(); |
