提交 856f126b 编写于 作者: D dl

6978087: jsr166y Updates

Summary: Simplify the ForkJoinPool API, reworking some of the internals
Reviewed-by: martin, dholmes, chegar
上级 8ddcf231
......@@ -898,7 +898,7 @@ public class Phaser {
boolean doWait() {
if (thread != null) {
try {
ForkJoinPool.managedBlock(this, false);
ForkJoinPool.managedBlock(this);
} catch (InterruptedException ie) {
}
}
......
......@@ -206,7 +206,7 @@ public final class Integrate {
q.fork();
ar = recEval(c, r, fc, fr, ar);
if (!q.tryUnfork()) {
q.quietlyHelpJoin();
q.quietlyJoin();
return ar + q.area;
}
return ar + recEval(l, c, fl, fc, al);
......@@ -254,7 +254,7 @@ public final class Integrate {
(q = new DQuad(l, c, al)).fork();
ar = recEval(c, r, fc, fr, ar);
if (q != null && !q.tryUnfork()) {
q.quietlyHelpJoin();
q.quietlyJoin();
return ar + q.area;
}
return ar + recEval(l, c, fl, fc, al);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册