ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java
(Generate patch)

Comparing jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java (file contents):
Revision 1.8 by dl, Sun Jan 4 00:57:21 2004 UTC vs.
Revision 1.9 by dl, Wed Jan 7 01:02:17 2004 UTC

# Line 32 | Line 32 | public class AbstractQueuedSynchronizerT
32          private static class Sync extends AbstractQueuedSynchronizer {
33              boolean isLocked() { return getState() == 1; }
34  
35 <            public boolean tryAcquireExclusive(boolean isQueued, int acquires) {
35 >            public boolean tryAcquireExclusive(int acquires) {
36                  assert acquires == 1; // Does not use multiple acquires
37                  return compareAndSetState(0, 1);
38              }
# Line 57 | Line 57 | public class AbstractQueuedSynchronizerT
57          
58          private final Sync sync = new Sync();
59          public boolean tryLock() {
60 <            return sync.tryAcquireExclusive(false, 1);
60 >            return sync.tryAcquireExclusive(1);
61          }
62          public void lock() {
63              sync.acquireExclusiveUninterruptibly(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines