[zeromq-dev] Fwd: ZMQ Closure - Change of Beginners Documentation
ph at imatix.com
Thu May 26 22:00:21 CEST 2011
On Thu, May 26, 2011 at 12:35 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> The whole ZMQ_TERM semantics was implemeted as an attempt to get rid of this
> boilerplate code. What it does it basically handles the termination
> handshake between main thread and worker threads behind the scenes...
For sure. I'm not a fan of sending messages to threads to shut them
down. The ZMQ_TERM semantics are a big help in killing a MT
application cleanly. This has to be properly explained in the Guide
and probably also in the man pages.
But we also sometimes use threads as process simulations, and they do
not then share contexts, and cannot be shut down like this. And often
we're using SIGINT, which has to be handled explicitly by a signal
More information about the zeromq-dev