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

Comparing jsr166/src/main/java/util/concurrent/Semaphore.java (file contents):
Revision 1.31 by dl, Fri Jan 2 21:02:31 2004 UTC vs.
Revision 1.32 by dl, Sun Jan 4 00:56:48 2004 UTC

# Line 140 | Line 140 | public class Semaphore implements java.i
140  
141          public int tryAcquireShared(boolean isQueued, int acquires) {
142              for (;;) {
143 <                if (!isQueued && fair && hasContended())
143 >                if (!isQueued && fair && hasQueuedThreads())
144                      return -1;
145                  int available = getState();
146                  int remaining = available - acquires;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines