# | Line 61 | Line 61 | public class ConcurrentDequeLoops { | |
---|---|---|
61 | final CyclicBarrier barrier; | |
62 | final LoopHelpers.SimpleRandom rng = new LoopHelpers.SimpleRandom(); | |
63 | int items; | |
64 | < | Stage (Deque<Integer> q, CyclicBarrier b, int items) { |
64 | > | Stage(Deque<Integer> q, CyclicBarrier b, int items) { |
65 | queue = q; | |
66 | barrier = b; | |
67 | this.items = items; | |
# | Line 72 | Line 72 | public class ConcurrentDequeLoops { | |
72 | // transform it, and put back in. | |
73 | try { | |
74 | barrier.await(); | |
75 | < | int l = (int)System.nanoTime(); |
75 | > | int l = (int) System.nanoTime(); |
76 | int takes = 0; | |
77 | for (;;) { | |
78 | Integer item; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |