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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to