303 |
|
// Note: convention in all put/take/etc is to preset local var |
304 |
|
// holding count negative to indicate failure unless set. |
305 |
|
int c = -1; |
306 |
< |
Node<E> node = new Node(e); |
306 |
> |
Node<E> node = new Node<E>(e); |
307 |
|
final ReentrantLock putLock = this.putLock; |
308 |
|
final AtomicInteger count = this.count; |
309 |
|
putLock.lockInterruptibly(); |
383 |
|
if (count.get() == capacity) |
384 |
|
return false; |
385 |
|
int c = -1; |
386 |
< |
Node<E> node = new Node(e); |
386 |
> |
Node<E> node = new Node<E>(e); |
387 |
|
final ReentrantLock putLock = this.putLock; |
388 |
|
putLock.lock(); |
389 |
|
try { |