Init object is child of listener

This means that all the handshaking while accepting incoming
connection is done exclusively in I/O threads, thus it won't
overload the application thread's mailbox.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik 2011-02-17 14:20:19 +01:00
parent 28f3e87fc6
commit 1f536b2d38

View File

@ -72,6 +72,6 @@ void zmq::zmq_listener_t::in_event ()
zmq_init_t *init = new (std::nothrow) zmq_init_t (io_thread, socket,
NULL, fd, options);
zmq_assert (init);
launch_sibling (init);
launch_child (init);
}