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.74 by jsr166, Sat Jun 18 01:25:18 2011 UTC vs.
Revision 1.75 by jsr166, Sat Jun 18 01:38:51 2011 UTC

# Line 378 | Line 378 | public class FutureTask<V> implements Ru
378      private void removeWaiter(WaitNode node) {
379          if (node != null) {
380              node.thread = null;
381 <            WaitNode pred = null;
382 <            WaitNode q = waiters;
383 <            while (q != null) {
381 >            for (WaitNode pred = null, q = waiters; q != null;) {
382                  WaitNode next = q.next;
383                  if (q != node) {
384                      pred = q;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines