1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
* Other contributors include Andrew Wright, Jeffrey Hayes, |
6 |
|
* Pat Fisher, Mike Judd. |
7 |
|
*/ |
204 |
|
|
205 |
|
|
206 |
|
/** |
207 |
< |
* A release in one thread enables a timed acquire in another thread |
207 |
> |
* A release in one thread enables a timed acquire in another thread |
208 |
|
*/ |
209 |
|
public void testTimedAcquireReleaseInDifferentThreads() |
210 |
|
throws InterruptedException { |
244 |
|
} |
245 |
|
|
246 |
|
/** |
247 |
< |
* A waiting timed acquire blocks interruptibly |
247 |
> |
* A waiting timed acquire blocks interruptibly |
248 |
|
*/ |
249 |
|
public void testTryAcquire_InterruptedException() |
250 |
|
throws InterruptedException { |
667 |
|
} |
668 |
|
|
669 |
|
/** |
670 |
< |
* A waiting tryAcquire blocks interruptibly |
670 |
> |
* A waiting tryAcquire blocks interruptibly |
671 |
|
*/ |
672 |
|
public void testTryAcquire_InterruptedException_fair() |
673 |
|
throws InterruptedException { |
684 |
|
} |
685 |
|
|
686 |
|
/** |
687 |
< |
* A waiting tryAcquire(n) blocks interruptibly |
687 |
> |
* A waiting tryAcquire(n) blocks interruptibly |
688 |
|
*/ |
689 |
|
public void testTryAcquireN_InterruptedException_fair() |
690 |
|
throws InterruptedException { |