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

Function DecrementThread

be/src/common/atomic-test.cc:78–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template<typename T>
78static void DecrementThread(int64_t id, int64_t n, AtomicInt<T>* ai) {
79 for (int64_t i = 0; i < n * id; ++i) {
80 ai->Add(-1);
81 }
82}
83
84template<typename T>
85static void TestMultipleThreadsIncDec() {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected