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

Method SetValue

be/src/util/metrics.h:195–198  ·  view source on GitHub ↗

Atomically sets the value.

Source from the content-addressed store, hash-verified

193
194 /// Atomically sets the value.
195 void SetValue(const T& value) {
196 std::lock_guard<SpinLock> l(lock_);
197 value_ = value;
198 }
199
200 protected:
201 /// Guards access to value_.

Callers 5

refreshMethod · 0.45
SetValueMethod · 0.45
InitCommonMetricsMethod · 0.45
RefreshMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36