272 |
|
* interruptible operations throw InterruptedException when pre-interrupted |
273 |
|
*/ |
274 |
|
public void testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() { |
275 |
– |
final CountDownLatch running = new CountDownLatch(1); |
275 |
|
final StampedLock lock = new StampedLock(); |
276 |
|
|
277 |
|
Action[] interruptibleLockActions = { |
336 |
|
* interruptible operations throw InterruptedException when write locked and interrupted |
337 |
|
*/ |
338 |
|
public void testInterruptibleOperationsThrowInterruptedExceptionWriteLockedInterrupted() { |
340 |
– |
final CountDownLatch running = new CountDownLatch(1); |
339 |
|
final StampedLock lock = new StampedLock(); |
340 |
|
long s = lock.writeLock(); |
341 |
|
|
358 |
|
* interruptible operations throw InterruptedException when read locked and interrupted |
359 |
|
*/ |
360 |
|
public void testInterruptibleOperationsThrowInterruptedExceptionReadLockedInterrupted() { |
363 |
– |
final CountDownLatch running = new CountDownLatch(1); |
361 |
|
final StampedLock lock = new StampedLock(); |
362 |
|
long s = lock.readLock(); |
363 |
|
|