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.6 by dl, Wed Jul 9 23:23:17 2003 UTC vs.
Revision 1.7 by dl, Fri Jul 11 13:12:06 2003 UTC

# Line 314 | Line 314 | public class Semaphore implements java.i
314       * in the application.
315       */
316      public void release() {
317 <        // Even if using fair locks, releases should try to barge in.
318 <        if (!lock.tryLock())
319 <            lock.lock();
320 <
317 >        lock.lock();
318          try {
319              ++count;
320              available.signal();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines