[zeromq-dev] Fwd: ZMQ Closure - Change of Beginners Documentation
Martin Sustrik
sustrik at 250bpm.com
Wed May 25 16:08:10 CEST 2011
On 05/25/2011 03:59 PM, Andrew Hume wrote:
> How a multi-threaded application terminates is beyond teh scope of this
> guide,
> but zmq_term provides support for a control thread to terminate all
> pending zmq operations, such as zmq_recv, with a specific error code
> (ETERM).
> This allows the threads where those operations were running to clean up,
> typically including calling zmq_close on appropriate sockets.
> This in turn will allow zmq_close to terminate.
That sounds like it should go to the zmq_term(3) man page. Would you
mind submitting a documentation patch?
As for the guide, I would say it should provide a more hands-on example,
say how event loops in worker threads can be terminated by zmq_term()
called in the main thread.
Martin
More information about the zeromq-dev
mailing list