94 |
|
} |
95 |
|
|
96 |
|
public boolean tryReleaseShared(long ignore) { |
97 |
< |
setState(1 << 62); |
97 |
> |
setState(1L << 62); |
98 |
|
return true; |
99 |
|
} |
100 |
|
} |
225 |
|
case awaitUntil: |
226 |
|
assertTrue(c.awaitUntil(delayedDate(timeoutMillis))); |
227 |
|
break; |
228 |
+ |
default: |
229 |
+ |
throw new AssertionError(); |
230 |
|
} |
231 |
|
} |
232 |
|
|
1197 |
|
public void testTryAcquireSharedNanos_Timeout() { |
1198 |
|
final BooleanLatch l = new BooleanLatch(); |
1199 |
|
final BooleanLatch observedQueued = new BooleanLatch(); |
1198 |
– |
final long timeoutMillis = timeoutMillis(); |
1200 |
|
Thread t = newStartedThread(new CheckedRunnable() { |
1201 |
|
public void realRun() throws InterruptedException { |
1202 |
|
assertFalse(l.isSignalled()); |