[zeromq-dev] czmq zctx_t context shadowing

Pieter Hintjens ph at imatix.com
Thu Dec 15 03:47:56 CET 2011


On Mon, Dec 12, 2011 at 7:25 AM, Philip Kovacs <kovacsp3 at comcast.net> wrote:

> So it is safe (and even preferred) to use zctx_destroy () on the attached thread
> context since zthread_fork () is creating a shadow copy of the original context?

You don't destroy the shadow context explicitly, this is done
automatically when the thread ends. Same thing for the pipe. I'll make
this clear in the documentation. Thanks for pointing out the
ambiguity.

-Pieter



More information about the zeromq-dev mailing list