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 |
|
*/ |
6 |
|
// Adapted from code that was in turn |
7 |
|
// Derived from SocketPerformanceTest.java - BugID: 4763450 |
29 |
|
static int HoldPop; |
30 |
|
static int HoldLimit; |
31 |
|
|
32 |
< |
static private boolean HoldCheck() { |
32 |
> |
private static boolean HoldCheck() { |
33 |
|
try { |
34 |
|
HoldQ.lock(); |
35 |
|
try { |
221 |
|
if (false && j == 2) { |
222 |
|
System.out.print("Hold activated ..."); |
223 |
|
HoldQ.lock(); |
224 |
< |
try { |
224 |
> |
try { |
225 |
|
Hold = true; |
226 |
|
while (Hold) HoldQCond.await(); |
227 |
|
} |