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

Method InserterThread

be/src/kudu/util/blocking_queue-test.cc:288–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 void InserterThread(int arg) {
289 for (int i = 0; i < puts_; i++) {
290 ASSERT_EQ(queue_.Put(arg), QUEUE_SUCCESS);
291 }
292 sync_latch_.CountDown();
293 sync_latch_.Wait();
294 for (int i = 0; i < blocking_puts_; i++) {
295 ASSERT_OK(queue_.BlockingPut(arg));
296 }
297 MutexLock guard(lock_);
298 if (--num_inserters_ == 0) {
299 queue_.Shutdown();
300 }
301 }
302
303 void RemoverThread() {
304 for (int i = 0; i < puts_ + blocking_puts_; i++) {

Callers

nothing calls this directly

Calls 5

CountDownMethod · 0.80
PutMethod · 0.45
WaitMethod · 0.45
BlockingPutMethod · 0.45
ShutdownMethod · 0.45

Tested by

no test coverage detected