MCPcopy Create free account
hub / github.com/apache/impala / CompareAndSwap

Method CompareAndSwap

be/src/common/atomic.h:178–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 ALWAYS_INLINE void Store(bool val) { boolean_.Store(val); }
177
178 ALWAYS_INLINE bool CompareAndSwap(bool old_val, bool new_val) {
179 return boolean_.CompareAndSwap(old_val, new_val);
180 }
181
182 private:
183 internal::AtomicInt<int32_t> boolean_;

Callers

nothing calls this directly

Calls 1

CompareAndSwapMethod · 0.45

Tested by

no test coverage detected