# | Line 83 | Line 83 | public class Exchanger<V> { | |
---|---|---|
83 | * if (slot is empty) { // offer | |
84 | * place item in a Node; | |
85 | * if (can CAS slot from empty to node) { | |
86 | < | * wait for release; |
87 | < | * return matching item in node; |
86 | > | * wait for release; |
87 | > | * return matching item in node; |
88 | * } | |
89 | * } | |
90 | * else if (can CAS slot from node to empty) { // release |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |