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

Comparing jsr166/src/main/java/util/concurrent/SynchronousQueue.java (file contents):
Revision 1.91 by jsr166, Thu Jan 24 04:10:44 2013 UTC vs.
Revision 1.92 by jsr166, Tue Feb 5 19:54:06 2013 UTC

# Line 854 | Line 854 | public class SynchronousQueue<E> extends
854       * up to the specified wait time for another thread to receive it.
855       *
856       * @return {@code true} if successful, or {@code false} if the
857 <     *         specified waiting time elapses before a consumer appears.
857 >     *         specified waiting time elapses before a consumer appears
858       * @throws InterruptedException {@inheritDoc}
859       * @throws NullPointerException {@inheritDoc}
860       */
# Line 903 | Line 903 | public class SynchronousQueue<E> extends
903       * to insert it.
904       *
905       * @return the head of this queue, or {@code null} if the
906 <     *         specified waiting time elapses before an element is present.
906 >     *         specified waiting time elapses before an element is present
907       * @throws InterruptedException {@inheritDoc}
908       */
909      public E poll(long timeout, TimeUnit unit) throws InterruptedException {
# Line 918 | Line 918 | public class SynchronousQueue<E> extends
918       * is currently making an element available.
919       *
920       * @return the head of this queue, or {@code null} if no
921 <     *         element is available.
921 >     *         element is available
922       */
923      public E poll() {
924          return transferer.transfer(null, true, 0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines