[zeromq-dev] C++ assertion failed with Java client
Martin Lucina
martin at lucina.net
Thu Feb 2 12:36:58 CET 2012
skaller at users.sourceforge.net said:
>
> On 02/02/2012, at 10:18 PM, Pieter Hintjens wrote:
>
> > On Thu, Feb 2, 2012 at 6:42 AM, Kishore Kopalle <kkopalle at gmail.com> wrote:
> >
> >> I am receiving the following errors when I try to work in a multi-threaded
> >> environment (10 threads) where ZeroMQ is used to send/receive messages
> >
> > You are using 0MQ sockets from multiple threads? That will crash.
>
>
> Q: is it technically feasible to make a thread-safe wrapper around 0MQ sockets?
Sure, chuck a bunch of locks around socket-related calls? A mutex implies a
full memory barrier, so things should work OK at least on cache-coherent
architectures.
Performance will take a nose-dive of course, but if that is not a concern,
go for it ...
-mato
More information about the zeromq-dev
mailing list