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) { |
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) { |