diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-02-17 14:20:19 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-02-17 14:20:19 +0100 |
commit | 1f536b2d3820ba5435086a77ad34d86a432b94c7 (patch) | |
tree | 16e38b22cdd66d6b8ea11897ef8637e5c99da852 | |
parent | 28f3e87fc6c8c5c7046234bf9a08ae62f26d7f3a (diff) |
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>
-rw-r--r-- | src/zmq_listener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq_listener.cpp b/src/zmq_listener.cpp index 522ab3f..2a7f1eb 100644 --- a/src/zmq_listener.cpp +++ b/src/zmq_listener.cpp @@ -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); } |