[zeromq-dev] [PATCH] Scalability improvements for large amounts of connections
Martin Sustrik
sustrik at 250bpm.com
Mon Oct 11 17:43:38 CEST 2010
On 10/11/2010 05:36 PM, Pieter Hintjens wrote:
> I'd propose this text for zmq_socket[3]:
>
> .Thread safety
> 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, or via an inproc
> message. You should not read or write the same socket from multiple threads
> unless you can ensure the necessary full memory barriers.
Good, except that I wouldn't mention passing a socket via inproc.
Martin
More information about the zeromq-dev
mailing list