ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/FutureTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/FutureTask.java (file contents):
Revision 1.65 by jsr166, Fri Jun 17 20:54:00 2011 UTC vs.
Revision 1.66 by jsr166, Fri Jun 17 21:00:44 2011 UTC

# Line 256 | Line 256 | public class FutureTask<V> implements Ru
256       * @return true if successfully run and reset
257       */
258      protected boolean runAndReset() {
259        Thread r = Thread.currentThread();
259          if (state != 0 ||
260 <            !UNSAFE.compareAndSwapObject(this, runnerOffset, null, r))
260 >            !UNSAFE.compareAndSwapObject(this, runnerOffset,
261 >                                         null, Thread.currentThread()))
262              return false;
263          try {
264              callable.call(); // don't set result

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines