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.33 by jsr166, Thu Apr 20 07:00:26 2006 UTC vs.
Revision 1.34 by jsr166, Fri Jul 6 06:54:30 2007 UTC

# Line 144 | Line 144 | public class CountDownLatch {
144              return getState();
145          }
146  
147 <        public int tryAcquireShared(int acquires) {
147 >        protected int tryAcquireShared(int acquires) {
148              return getState() == 0? 1 : -1;
149          }
150  
151 <        public boolean tryReleaseShared(int releases) {
151 >        protected boolean tryReleaseShared(int releases) {
152              // Decrement count; signal when transition to zero
153              for (;;) {
154                  int c = getState();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines