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.35 by dl, Fri Jan 2 21:02:32 2004 UTC vs.
Revision 1.36 by dl, Sun Jan 4 00:56:48 2004 UTC

# Line 325 | Line 325 | public class SynchronousQueue<E> extends
325                  qlock.unlock();
326              }
327  
328 <            if (mustWait)
329 <                return (E)node.waitForPut();
330 <
328 >            if (mustWait) {
329 >                Object x = node.waitForPut();
330 >                return (E)x;
331 >            }
332              else {
333                  Object x = node.getItem();
334                  if (x != null)
# Line 366 | Line 367 | public class SynchronousQueue<E> extends
367                  qlock.unlock();
368              }
369  
370 <            if (mustWait)
371 <                return (E) node.waitForPut(nanos);
372 <
370 >            if (mustWait) {
371 >                Object x = node.waitForPut(nanos);
372 >                return (E)x;
373 >            }
374              else {
375                  Object x = node.getItem();
376                  if (x != null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines