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

Method AddThread

be/src/util/thread.cc:208–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void ThreadMgr::AddThread(const thread::id& thread, const string& name,
209 const string& category, int64_t tid) {
210 lock_guard<mutex> l(lock_);
211 ThreadCategory& thread_category = thread_categories_[category];
212 thread_category.threads_by_id[thread] = ThreadDescriptor(category, name, tid);
213 ++thread_category.num_threads_created;
214 if (metrics_enabled_) {
215 current_num_threads_metric_->Increment(1L);
216 total_threads_metric_->Increment(1L);
217 }
218}
219
220void ThreadMgr::RemoveThread(const thread::id& boost_id, const string& category) {
221 lock_guard<mutex> l(lock_);

Callers 4

InitMethod · 0.45
SuperviseThreadMethod · 0.45
InitMethod · 0.45

Calls 3

moveFunction · 0.85
ThreadDescriptorClass · 0.70
IncrementMethod · 0.45

Tested by

no test coverage detected