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

Comparing jsr166/src/main/java/util/concurrent/CountDownLatch.java (file contents):
Revision 1.41 by jsr166, Sun Nov 25 21:24:46 2012 UTC vs.
Revision 1.42 by jsr166, Wed Dec 31 06:59:16 2014 UTC

# Line 150 | Line 150 | public class CountDownLatch {
150                  int c = getState();
151                  if (c == 0)
152                      return false;
153 <                int nextc = c-1;
153 >                int nextc = c - 1;
154                  if (compareAndSetState(c, nextc))
155                      return nextc == 0;
156              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines