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

Comparing jsr166/src/main/java/util/concurrent/CancellableTask.java (file contents):
Revision 1.2 by dl, Fri Jun 6 16:53:04 2003 UTC vs.
Revision 1.3 by dl, Mon Jun 9 02:32:05 2003 UTC

# Line 70 | Line 70 | public class CancellableTask implements
70              r != null &&
71              r instanceof Thread &&
72              r != Thread.currentThread() &&
73 <            runnerUpdater.compareAndSet(this, r, CANCELLED)) {
73 >            runnerUpdater.compareAndSet(this, r, CANCELLED))
74  
75              ((Thread)r).interrupt();
76 <        }
77 <        else {
76 >        else
77              runnerUpdater.set(this, CANCELLED);
79        }
78          return true;
79      }
80      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines