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

Comparing jsr166/src/jsr166y/LinkedTransferQueue.java (file contents):
Revision 1.35 by jsr166, Thu Jul 30 22:45:39 2009 UTC vs.
Revision 1.36 by jsr166, Fri Jul 31 07:30:29 2009 UTC

# Line 524 | Line 524 | public class LinkedTransferQueue<E> exte
524      /**
525       * Transfers the specified element immediately if there exists a
526       * consumer already waiting to receive it (in {@link #take} or
527 <     * timed {@link #poll(Object,long,TimeUnit) poll}), otherwise
527 >     * timed {@link #poll(long,TimeUnit) poll}), otherwise
528       * returning {@code false} without enqueuing the element.
529       *
530       * @throws NullPointerException if the specified element is null
# Line 539 | Line 539 | public class LinkedTransferQueue<E> exte
539       * waiting if necessary for the element to be received by a
540       * consumer invoking {@code take} or {@code poll}.
541       *
542     * @throws InterruptedException {@inheritDoc}
542       * @throws NullPointerException if the specified element is null
543       */
544      public void transfer(E e) throws InterruptedException {
# Line 555 | Line 554 | public class LinkedTransferQueue<E> exte
554       * waiting up to the specified wait time for the element to be
555       * received by a consumer invoking {@code take} or {@code poll}.
556       *
558     * @throws InterruptedException {@inheritDoc}
557       * @throws NullPointerException if the specified element is null
558       */
559      public boolean tryTransfer(E e, long timeout, TimeUnit unit)
# Line 576 | Line 574 | public class LinkedTransferQueue<E> exte
574          throw new InterruptedException();
575      }
576  
579    /**
580     * @throws InterruptedException {@inheritDoc}
581     */
577      public E poll(long timeout, TimeUnit unit) throws InterruptedException {
578          E e = xfer(null, TIMEOUT, unit.toNanos(timeout));
579          if (e != null || !Thread.interrupted())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines