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

Comparing jsr166/src/jsr166y/ForkJoinPool.java (file contents):
Revision 1.64 by dl, Tue Aug 17 18:30:32 2010 UTC vs.
Revision 1.65 by dl, Wed Aug 18 14:05:27 2010 UTC

# Line 1855 | Line 1855 | public class ForkJoinPool extends Abstra
1855       *   QueueTaker(BlockingQueue<E> q) { this.queue = q; }
1856       *   public boolean block() throws InterruptedException {
1857       *     if (item == null)
1858 <     *       item = queue.take
1858 >     *       item = queue.take();
1859       *     return true;
1860       *   }
1861       *   public boolean isReleasable() {
1862 <     *     return item != null || (item = queue.poll) != null;
1862 >     *     return item != null || (item = queue.poll()) != null;
1863       *   }
1864       *   public E getItem() { // call after pool.managedBlock completes
1865       *     return item;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines