ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/SynchronousQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/SynchronousQueue.java (file contents):
Revision 1.107 by jsr166, Wed Dec 3 21:55:44 2014 UTC vs.
Revision 1.108 by jsr166, Wed Dec 31 06:59:16 2014 UTC

# Line 429 | Line 429 | public class SynchronousQueue<E> extends
429                      }
430                  }
431                  if (spins > 0)
432 <                    spins = shouldSpin(s) ? (spins-1) : 0;
432 >                    spins = shouldSpin(s) ? (spins - 1) : 0;
433                  else if (s.waiter == null)
434                      s.waiter = w; // establish waiter so can park next iter
435                  else if (!timed)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines