1036 |
|
else { |
1037 |
|
try { |
1038 |
|
ForkJoinPool.managedBlock(node); |
1039 |
< |
} catch (InterruptedException ie) { |
1039 |
> |
} catch (InterruptedException cantHappen) { |
1040 |
|
node.wasInterrupted = true; |
1041 |
|
} |
1042 |
|
} |
1105 |
|
} |
1106 |
|
|
1107 |
|
public boolean block() { |
1108 |
< |
if (isReleasable()) |
1109 |
< |
return true; |
1110 |
< |
else if (!timed) |
1111 |
< |
LockSupport.park(this); |
1112 |
< |
else if (nanos > 0L) |
1113 |
< |
LockSupport.parkNanos(this, nanos); |
1114 |
< |
return isReleasable(); |
1108 |
> |
while (!isReleasable()) { |
1109 |
> |
if (!timed) |
1110 |
> |
LockSupport.park(this); |
1111 |
> |
else |
1112 |
> |
LockSupport.parkNanos(this, nanos); |
1113 |
> |
} |
1114 |
> |
return true; |
1115 |
|
} |
1116 |
|
} |
1117 |
|
|