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.37 by dl, Wed Jan 7 01:00:51 2004 UTC vs.
Revision 1.38 by dl, Fri Jan 9 14:45:17 2004 UTC

# Line 171 | Line 171 | public class SynchronousQueue<E> extends
171           */
172          boolean waitForTake(long nanos) throws InterruptedException {
173              try {
174 <                if (!acquireExclusiveTimed(0, nanos) &&
174 >                if (!acquireExclusiveNanos(0, nanos) &&
175                      releaseExclusive(CANCEL))
176                      return false;
177              } catch (InterruptedException ie) {
# Line 185 | Line 185 | public class SynchronousQueue<E> extends
185           */
186          Object waitForPut(long nanos) throws InterruptedException {
187              try {
188 <                if (!acquireExclusiveTimed(0, nanos) &&
188 >                if (!acquireExclusiveNanos(0, nanos) &&
189                      releaseExclusive(CANCEL))
190                      return null;
191              } catch (InterruptedException ie) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines