# | Line 64 | Line 64 | import java.util.concurrent.locks.*; | |
---|---|---|
64 | */ | |
65 | public class Exchanger<V> { | |
66 | private final ReentrantLock lock = new ReentrantLock(); | |
67 | < | private final ReentrantLock.ConditionObject taken = lock.newCondition(); |
67 | > | private final Condition taken = lock.newCondition(); |
68 | ||
69 | /** Holder for the item being exchanged */ | |
70 | private V item; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |