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

Method WaitUntil

be/src/kudu/util/threadpool.cc:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276bool ThreadPoolToken::WaitUntil(const MonoTime& until) {
277 MutexLock unique_lock(pool_->lock_);
278 pool_->CheckNotPoolThreadUnlocked();
279 while (IsActive()) {
280 if (!not_running_cond_.WaitUntil(until)) {
281 return false;
282 }
283 }
284 return true;
285}
286
287bool ThreadPoolToken::WaitFor(const MonoDelta& delta) {
288 return WaitUntil(MonoTime::Now() + delta);

Callers 7

BlockingGetMethod · 0.45
BlockingDrainToMethod · 0.45
BlockingPutMethod · 0.45
TEST_PFunction · 0.45
StartAndWaitForServerMethod · 0.45

Calls 1

Tested by 1

TEST_PFunction · 0.36