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

Method Add

be/src/common/atomic.h:92–94  ·  view source on GitHub ↗

Atomic add with "barrier" memory-ordering semantic. Returns the new value.

Source from the content-addressed store, hash-verified

90
91 /// Atomic add with "barrier" memory-ordering semantic. Returns the new value.
92 ALWAYS_INLINE T Add(T x) {
93 return base::subtle::Barrier_AtomicIncrement(&value_, x);
94 }
95
96 /// Atomically compare 'old_val' to 'value_' and set 'value_' to 'new_val' and return
97 /// true if they compared equal, otherwise return false (and do no updates), with

Callers 8

TestBasicFunction · 0.45
IncrementThreadFunction · 0.45
DecrementThreadFunction · 0.45
SetUpMethod · 0.45
LlvmCodeGenMethod · 0.45
SetUpMethod · 0.45
SetUpQueryMethod · 0.45

Calls 1

Barrier_AtomicIncrementFunction · 0.85

Tested by 6

TestBasicFunction · 0.36
IncrementThreadFunction · 0.36
DecrementThreadFunction · 0.36
SetUpMethod · 0.36
SetUpMethod · 0.36
SetUpQueryMethod · 0.36