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

Comparing jsr166/src/test/tck/ReentrantReadWriteLockTest.java (file contents):
Revision 1.83 by jsr166, Sun Sep 22 01:59:57 2019 UTC vs.
Revision 1.84 by jsr166, Thu Sep 26 20:48:53 2019 UTC

# Line 1706 | Line 1706 | public class ReentrantReadWriteLockTest
1706          lock.lock();
1707          final Thread thread = newStartedThread((Action) () -> {
1708              if (timedAcquire)
1709 <                lock.tryLock(LONGER_DELAY_MS, MILLISECONDS);
1710 <            else
1711 <                lock.lock();
1712 <            while (!conditionSatisfied.get())
1713 <                if (timedAwait)
1714 <                    condition.await(LONGER_DELAY_MS, MILLISECONDS);
1715 <                else
1716 <                    condition.await();
1709 >                lock.tryLock(LONGER_DELAY_MS, MILLISECONDS);
1710 >            else
1711 >                lock.lock();
1712 >            while (!conditionSatisfied.get())
1713 >                if (timedAwait)
1714 >                    condition.await(LONGER_DELAY_MS, MILLISECONDS);
1715 >                else
1716 >                    condition.await();
1717          });
1718          Callable<Boolean> waitingForLock = () -> {
1719              String className;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines