| 158 | } |
| 159 | |
| 160 | void EventLoopThreadPool::OnThreadStarted(uint32_t count) { |
| 161 | DLOG_TRACE << "tid=" << std::this_thread::get_id() << " count=" << count << " started."; |
| 162 | if (count == thread_num_) { |
| 163 | DLOG_TRACE << "thread pool totally started."; |
| 164 | status_.store(kRunning); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | void EventLoopThreadPool::OnThreadExited(uint32_t count) { |
| 169 | DLOG_TRACE << "tid=" << std::this_thread::get_id() << " count=" << count << " exited."; |