Initial implementation of reaper thread.

Reaper thread destroys the socket asynchronously.
zmq_term() can be interrupted by a signal (EINTR).
zmq_socket() will return ETERM after zmq_term() was called.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-02-09 15:32:15 +01:00
parent 889424e675
commit 80ac398bba
14 changed files with 394 additions and 130 deletions

View File

@@ -75,7 +75,7 @@ void zmq::io_thread_t::in_event ()
if (rc != 0 && errno == EINTR)
continue;
if (rc != 0 && errno == EAGAIN)
break;
break;
errno_assert (rc == 0);
// Process the command.