MCPcopy Create free account
hub / github.com/Qihoo360/evpp / OnThreadExited

Method OnThreadExited

evpp/event_loop_thread_pool.cc:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void EventLoopThreadPool::OnThreadExited(uint32_t count) {
169 DLOG_TRACE << "tid=" << std::this_thread::get_id() << " count=" << count << " exited.";
170 if (count == thread_num_) {
171 status_.store(kStopped);
172 DLOG_TRACE << "this is the last thread stopped. Thread pool totally exited.";
173 if (stopped_cb_) {
174 stopped_cb_();
175 stopped_cb_ = DoneCallback();
176 }
177 }
178}
179
180}

Callers 1

StartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected