[zeromq-dev] zmq_term
Pieter Hintjens
ph at imatix.com
Mon Oct 31 06:18:12 CET 2011
On Sun, Oct 30, 2011 at 9:34 PM, Matt Weinstein
<matt_weinstein at yahoo.com> wrote:
> Meanwhile, I saw the czmq recommendation. I'm presuming it's a façade which
> adds said bookkeeping layer. This adds complexity in multiple ways, and
> misses the mark IMHO. I'd be happy to discuss.
Do discuss.
> To fix the zmq_term problem, I would propose either:
> add zmq_setctxopt() / zmq_getctxopt() with an option to select termination
> behavior; or
> create an info call (zmq_getctxinfo()) to obtain socket lists from contexts.
If only it was that simple :-) There are long discussions on the list
of why zmq_term does what it does. CZMQ's bookkeeping is the only
solution we know of and it depends on controlling all thread creation.
This is how other language bindings also solve the problem.
-Pieter
More information about the zeromq-dev
mailing list