[zeromq-dev] zmq_socket and threads

Pieter Hintjens ph at imatix.com
Thu Jan 3 11:06:28 CET 2013

On Thu, Jan 3, 2013 at 1:03 AM, Joshua Foster <jhawk28 at gmail.com> wrote:

> The mutex is "required" because it guarantees that it is only used by a
> single thread at a time. ZMQ has assertions that will cause your
> application to crash if you access a socket between two threads
> concurrently.
> It's not the assertions that cause the application to crash. It's data
corruption caused by accessing the same data from multiple threads. The
assertions catch the corruption and kill the application because continuing
with corrupted data would be pathological.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130103/d90b6192/attachment.htm>

More information about the zeromq-dev mailing list