MCPcopy Create free account
hub / github.com/ceph/ceph / start

Method start

src/msg/async/AsyncMessenger.cc:160–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void Processor::start()
161{
162 ldout(msgr->cct, 1) << __func__ << dendl;
163
164 // start thread
165 worker->center.submit_to(worker->center.get_id(), [this]() {
166 for (auto& listen_socket : listen_sockets) {
167 if (listen_socket) {
168 if (listen_socket.fd() == -1) {
169 ldout(msgr->cct, 1) << __func__
170 << " Error: processor restart after listen_socket.fd closed. "
171 << this << dendl;
172 return;
173 }
174 worker->center.create_file_event(listen_socket.fd(), EVENT_READABLE,
175 listen_handler); }
176 }
177 }, false);
178}
179
180void Processor::accept()
181{

Callers 3

AsyncMessengerMethod · 0.45
readyMethod · 0.45
rebindMethod · 0.45

Calls 5

submit_toMethod · 0.80
create_file_eventMethod · 0.80
get_idMethod · 0.45
fdMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected