[zeromq-dev] [PATCH] Scalability improvements for large amounts of connections

Martin Sustrik sustrik at 250bpm.com
Mon Oct 11 18:52:40 CEST 2010


On 10/11/2010 06:22 PM, Pieter Hintjens wrote:
> On Mon, Oct 11, 2010 at 5:41 PM, Martin Sustrik<sustrik at 250bpm.com>  wrote:
>
>>> For case 3 it should IMO either 'just work' when the socket is created
>>> but never used in the parent thread (doing an implicit memory barrier
>>> after creation, for example).
>>
>> +1
>
> Does this mean 0MQ will do/does already do a memory barrier after
> creating a socket?

No. But pthread_create does. Actually, in most cases you don't need to 
do anything. The infrastructure you are operating in (such as language 
VM) executes the barrier for you.

Martin



More information about the zeromq-dev mailing list