--- jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java 2003/12/29 01:18:40 1.2 +++ jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java 2003/12/29 14:19:27 1.3 @@ -30,7 +30,7 @@ public class AbstractQueuedSynchronizerT */ static class Mutex implements Lock, java.io.Serializable { private static class Sync extends AbstractQueuedSynchronizer { - public int acquireExclusiveState(boolean isQueued, int acquires, Thread current) { + public int acquireExclusiveState(boolean isQueued, int acquires) { assert acquires == 1; // Does not use multiple acquires return state().compareAndSet(0, 1)? 0 : -1; } @@ -40,7 +40,7 @@ public class AbstractQueuedSynchronizerT return true; } - public int acquireSharedState(boolean isQueued, int acquires, Thread current) { + public int acquireSharedState(boolean isQueued, int acquires) { throw new UnsupportedOperationException(); } @@ -62,10 +62,10 @@ public class AbstractQueuedSynchronizerT private final Sync sync = new Sync(); public boolean tryLock() { - return sync.acquireExclusiveState(false, 1, null) >= 0; + return sync.acquireExclusiveState(false, 1) >= 0; } public void lock() { - if (!tryLock()) sync.acquireExclusiveUninterruptibly(1); + sync.acquireExclusiveUninterruptibly(1); } public void lockInterruptibly() throws InterruptedException { sync.acquireExclusiveInterruptibly(1);