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

Method RemoveThread

be/src/util/thread.cc:220–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void ThreadMgr::RemoveThread(const thread::id& boost_id, const string& category) {
221 lock_guard<mutex> l(lock_);
222 ThreadCategoryMap::iterator category_it = thread_categories_.find(category);
223 DCHECK(category_it != thread_categories_.end());
224 category_it->second.threads_by_id.erase(boost_id);
225 if (metrics_enabled_) current_num_threads_metric_->Increment(-1L);
226}
227
228void ThreadMgr::GetThreadOverview(Document* document) {
229 lock_guard<mutex> l(lock_);

Callers 1

SuperviseThreadMethod · 0.45

Calls 4

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45
IncrementMethod · 0.45

Tested by

no test coverage detected