ZeroMQ sockets are not thread safe and cannot be used from multiple threads.
We are developing new socket types which are thread safe. Radio/dish are part of it. Also new client/server socket types are thread safe as well. On Mar 12, 2016 13:38, "Osiris Pedroso" <[email protected]> wrote: > You say this: > > - [Radio/Dish are] Thread safe, you can send and receive messages from > multiple threads, so for publisher you now don't need internal device to > publish from multiple threads and with subscriber you can use it as load > balancer. > > So by extension, it means that a Radio/Dish socket can be shared by > multiple threads. Correct? > > Is it a problem of regular PUB/SUB that it can not publish messages from > multiple threads? > I don't remember reading about this in The Guide. > > Actually please correct me if I am wrong, but I believed that all ZeroMQ > queues could be used by multiple threads without regards to thread safety, > meaning each thread specific ZeroMQ socket would take care of serializing > the messages being posted to the queue without any message loss due to > threading issues. > > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
