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