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