On Wed 30 Jan 2013 11:31:06 AM CET, Paul Colomiets wrote:
Hi, On Wed, Jan 30, 2013 at 10:36 AM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote:On 30/01/13 09:11, David Nyström wrote:Have you considered supporting a lockless implementation of message queues for inproc/ipc ? (libatomic_ops).Yes. I've implemented that for ZeroMQ, but it's not yet implemented in nanomsg. Getting portable MIT-licensed code for atomic CAS would be the first thing to do, I guess.It doesn't matter for this test. There would be need to wake up another thread anyway. And the need to lock both sockets anyway to do some connection management (choose the pipe at least).
Not true, if threads are running of different cores. //DD
-- Paul