[zeromq-dev] Dropping connection end points dynamically

Pieter Hintjens ph at imatix.com
Thu Apr 19 17:41:23 CEST 2012


On Wed, Apr 18, 2012 at 5:09 PM, Radha Krishna Srimanthula
<srimanthula.radhakrishna at gmail.com> wrote:

> Just to restate - would it be ok to create a socket in a main thread - only
> once, perform subscriptions/ unsubscriptions in another, and perform sends
> on the yet another thread?

Yes, you can migrate sockets between threads but you MUST do a full
memory barrier between operations.

-Pieter



More information about the zeromq-dev mailing list