| 218 | } |
| 219 | |
| 220 | void 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 | |
| 228 | void ThreadMgr::GetThreadOverview(Document* document) { |
| 229 | lock_guard<mutex> l(lock_); |
no test coverage detected