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

Method DestroyPool

be/src/runtime/thread-resource-mgr.cc:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ThreadResourceMgr::DestroyPool(unique_ptr<ThreadResourcePool> pool) {
64 DCHECK(pool != nullptr);
65 DCHECK(pool->parent_ != nullptr) << "Already unregistered";
66 DCHECK_EQ(pool->num_callbacks_.Load(), 0);
67 unique_lock<mutex> l(lock_);
68 DCHECK(pools_.find(pool.get()) != pools_.end());
69 pools_.erase(pool.get());
70 pool->parent_ = nullptr;
71 pool.reset();
72 UpdatePoolQuotas();
73}
74
75int ThreadResourcePool::AddThreadAvailableCb(ThreadAvailableCb fn) {
76 unique_lock<mutex> l(lock_);

Callers 2

TESTFunction · 0.80
ReleaseResourcesMethod · 0.80

Calls 6

eraseMethod · 0.80
getMethod · 0.65
resetMethod · 0.65
LoadMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64