ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/ForkJoinTask.java
(Generate patch)

Comparing jsr166/src/jsr166y/ForkJoinTask.java (file contents):
Revision 1.63 by dl, Sat Sep 18 12:10:21 2010 UTC vs.
Revision 1.65 by jsr166, Sat Oct 16 16:37:30 2010 UTC

# Line 261 | Line 261 | public abstract class ForkJoinTask<V> im
261          int s;
262          while ((s = status) >= 0) {
263              synchronized (this) {
264 <                if (UNSAFE.compareAndSwapInt(this, statusOffset, s, SIGNAL)){
264 >                if (UNSAFE.compareAndSwapInt(this, statusOffset, s, SIGNAL)) {
265                      boolean interrupted = false;
266                      while (status >= 0) {
267                          try {
# Line 661 | Line 661 | public abstract class ForkJoinTask<V> im
661          else {
662              while ((s = status) >= 0) {
663                  synchronized (this) { // interruptible form of awaitDone
664 <                    if (UNSAFE.compareAndSwapInt(this, statusOffset,
664 >                    if (UNSAFE.compareAndSwapInt(this, statusOffset,
665                                                   s, SIGNAL)) {
666                          while (status >= 0)
667                              wait();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines