703 |
|
lock.unlockWrite(s); |
704 |
|
s = lock.readLock(); |
705 |
|
assertTrue(lock.toString().contains("Read-locks")); |
706 |
+ |
releaseReadLock(lock, s); |
707 |
|
} |
708 |
|
|
709 |
|
/** |
1401 |
|
final long testDurationMillis = expensiveTests ? 1000 : 2; |
1402 |
|
final int nTasks = ThreadLocalRandom.current().nextInt(1, 10); |
1403 |
|
final AtomicBoolean done = new AtomicBoolean(false); |
1404 |
< |
final List<CompletableFuture> futures = new ArrayList<>(); |
1404 |
> |
final List<CompletableFuture<?>> futures = new ArrayList<>(); |
1405 |
|
final List<Callable<Long>> stampedWriteLockers = List.of( |
1406 |
|
() -> sl.writeLock(), |
1407 |
|
() -> writeLockInterruptiblyUninterrupted(sl), |