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.17 by dl, Wed Dec 31 21:30:00 2003 UTC vs.
Revision 1.18 by dl, Fri Jan 2 21:02:31 2004 UTC

# Line 136 | Line 136 | public class CountDownLatch {
136              return getState();
137          }
138  
139 <        public int tryAcquireSharedState(boolean isQueued, int acquires) {
139 >        public int tryAcquireShared(boolean isQueued, int acquires) {
140              return getState() == 0? 1 : -1;
141          }
142          
143 <        public boolean releaseSharedState(int releases) {
143 >        public boolean tryReleaseShared(int releases) {
144              // Decrement count; signal when transition to zero
145              for (;;) {
146                  int c = getState();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines