[zeromq-dev] [PATCH] Doc for socket migration

Martin Sustrik sustrik at 250bpm.com
Mon Oct 11 22:47:02 CEST 2010


On 10/11/2010 06:57 PM, Pieter Hintjens wrote:
> +0MQ sockets are not threadsafe. You can create a socket in one thread and use
> +it in a second thread, passing it at thread creation time, via a structure.
> +You should not read or write the same socket from multiple threads unless
> +you can ensure the necessary full memory barriers.

The second sentence looks like an explanation of the first one. It seems 
to contradict itself. Add "however" between the two or somesuch.

What structure?

Martin






More information about the zeromq-dev mailing list