409 |
|
} |
410 |
|
|
411 |
|
/** |
412 |
< |
* Read lock succeeds if write locked by current thread even if |
412 |
> |
* Read lock succeeds if write locked by current thread even if |
413 |
|
* other threads are waiting for writelock |
414 |
|
*/ |
415 |
|
public void testReadHoldingWriteLock3() throws InterruptedException { |
442 |
|
|
443 |
|
|
444 |
|
/** |
445 |
< |
* Write lock succeeds if write locked by current thread even if |
445 |
> |
* Write lock succeeds if write locked by current thread even if |
446 |
|
* other threads are waiting for writelock |
447 |
|
*/ |
448 |
|
public void testWriteHoldingWriteLock4() throws InterruptedException { |
715 |
|
} |
716 |
|
|
717 |
|
/** |
718 |
< |
* read lockInterruptibly succeeds if lock free else is interruptible |
718 |
> |
* read lockInterruptibly succeeds if lock free else is interruptible |
719 |
|
*/ |
720 |
|
public void testReadLockInterruptibly() throws InterruptedException { |
721 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |
771 |
|
|
772 |
|
|
773 |
|
/** |
774 |
< |
* timed await without a signal times out |
774 |
> |
* timed await without a signal times out |
775 |
|
*/ |
776 |
|
public void testAwait_Timeout() throws InterruptedException { |
777 |
|
final ReentrantReadWriteLock lock = new ReentrantReadWriteLock(); |