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.24 by dl, Fri Jan 2 00:38:33 2004 UTC vs.
Revision 1.25 by dl, Fri Jan 2 21:02:31 2004 UTC

# Line 202 | Line 202 | public class FutureTask<V> implements Fu
202          /**
203           * Implements AQS base acquire to succeed if Done/cancelled
204           */
205 <        protected int tryAcquireSharedState(boolean b, int ignore) {
205 >        protected int tryAcquireShared(boolean b, int ignore) {
206              return doIsDone()? 1 : -1;
207          }
208  
# Line 210 | Line 210 | public class FutureTask<V> implements Fu
210           * Implements AQS base release to always signal after setting
211           * final done status by nulling runner thread.
212           */
213 <        protected boolean releaseSharedState(int ignore) {
213 >        protected boolean tryReleaseShared(int ignore) {
214              runner = null;
215              return true;
216          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines