| 849 | } |
| 850 | |
| 851 | void ThreadPool::CheckNotPoolThreadUnlocked() { |
| 852 | Thread* current = Thread::current_thread(); |
| 853 | if (ContainsKey(threads_, current)) { |
| 854 | LOG(FATAL) << Substitute("Thread belonging to thread pool '$0' with " |
| 855 | "name '$1' called pool function that would result in deadlock", |
| 856 | name_, current->name()); |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | void ThreadPool::NotifyLoadMeterUnlocked(const MonoDelta& queue_time) { |
| 861 | if (!load_meter_) { |
no test coverage detected