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 John Vint |
6 |
|
*/ |
7 |
|
|
1074 |
|
threadStarted.await(); |
1075 |
|
while (q.isEmpty()) |
1076 |
|
Thread.yield(); |
1077 |
< |
Thread.sleep(SHORT_DELAY_MS); |
1077 |
> |
delay(SHORT_DELAY_MS); |
1078 |
|
t.interrupt(); |
1079 |
|
awaitTermination(t, MEDIUM_DELAY_MS); |
1080 |
|
checkEmpty(q); |