[zeromq-dev] czmq zctx_t context shadowing

Philip Kovacs kovacsp3 at comcast.net
Sun Dec 11 23:25:58 CET 2011


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?  

The reference material doesn't make this clear....

"An attached thread gets a ctx and a PAIR pipe..." 

ought to be:

"An attached thread gets a shadow copy of the ctx and a PAIR pipe...The shadow
context can be destroyed with zctx_destroy () without affecting the main thread's
context."

Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111211/af0043d0/attachment.sig>


More information about the zeromq-dev mailing list