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

Method RemoverThread

be/src/util/blocking-queue-test.cc:137–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 void RemoverThread() {
138 for (int i = 0; i < iterations_; ++i) {
139 int32_t arg;
140 bool got = queue_.BlockingGet(&arg);
141 if (!got) arg = -1;
142
143 {
144 lock_guard<mutex> guard(lock_);
145 gotten_[arg] = gotten_[arg] + 1;
146 }
147 }
148 }
149
150 void Run() {
151 for (int i = 0; i < nthreads_; ++i) {

Callers

nothing calls this directly

Calls 1

BlockingGetMethod · 0.45

Tested by

no test coverage detected