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

Comparing jsr166/src/test/tck/ReentrantLockTest.java (file contents):
Revision 1.70 by jsr166, Sun Sep 22 01:59:57 2019 UTC vs.
Revision 1.71 by jsr166, Thu Sep 26 20:48:52 2019 UTC

# Line 1224 | Line 1224 | public class ReentrantLockTest extends J
1224          lock.lock();
1225          final Thread thread = newStartedThread((Action) () -> {
1226              if (timedAcquire)
1227 <                lock.tryLock(LONGER_DELAY_MS, MILLISECONDS);
1228 <            else
1229 <                lock.lock();
1230 <            while (!conditionSatisfied.get())
1231 <                if (timedAwait)
1232 <                    condition.await(LONGER_DELAY_MS, MILLISECONDS);
1233 <                else
1234 <                    condition.await();
1227 >                lock.tryLock(LONGER_DELAY_MS, MILLISECONDS);
1228 >            else
1229 >                lock.lock();
1230 >            while (!conditionSatisfied.get())
1231 >                if (timedAwait)
1232 >                    condition.await(LONGER_DELAY_MS, MILLISECONDS);
1233 >                else
1234 >                    condition.await();
1235          });
1236          Callable<Boolean> waitingForLock = () -> {
1237              String className;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines