80 |
|
private final ReentrantLock takeLock = new ReentrantLock(); |
81 |
|
|
82 |
|
/** Wait queue for waiting takes */ |
83 |
< |
private final ReentrantLock.ConditionObject notEmpty = takeLock.newCondition(); |
83 |
> |
private final Condition notEmpty = takeLock.newCondition(); |
84 |
|
|
85 |
|
/** Lock held by put, offer, etc */ |
86 |
|
private final ReentrantLock putLock = new ReentrantLock(); |
87 |
|
|
88 |
|
/** Wait queue for waiting puts */ |
89 |
< |
private final ReentrantLock.ConditionObject notFull = putLock.newCondition(); |
89 |
> |
private final Condition notFull = putLock.newCondition(); |
90 |
|
|
91 |
|
/** |
92 |
|
* Signal a waiting take. Called only from put/offer (which do not |