# | Line 215 | Line 215 | public class ReentrantReadWriteLockTest | |
---|---|---|
215 | lock.writeLock().lock(); | |
216 | Thread t = new Thread(new CheckedInterruptedRunnable() { | |
217 | public void realRun() throws InterruptedException { | |
218 | < | lock.writeLock().tryLock(1000,MILLISECONDS); |
218 | > | lock.writeLock().tryLock(SMALL_DELAY_MS, MILLISECONDS); |
219 | }}); | |
220 | ||
221 | t.start(); | |
222 | + | Thread.sleep(SHORT_DELAY_MS); |
223 | t.interrupt(); | |
224 | lock.writeLock().unlock(); | |
225 | t.join(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |