# | Line 94 | Line 94 | public class AtomicLongFieldUpdaterTest | |
---|---|---|
94 | assertEquals(-3,a.get(this)); | |
95 | } | |
96 | ||
97 | – | |
97 | /** | |
98 | * compareAndSet succeeds in changing value if equal to expected else fails | |
99 | */ | |
# | Line 115 | Line 114 | public class AtomicLongFieldUpdaterTest | |
114 | assertEquals(7,a.get(this)); | |
115 | } | |
116 | ||
118 | – | |
117 | /** | |
118 | * compareAndSet in one thread enables another waiting for value | |
119 | * to succeed |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |