[zeromq-dev] Mixing threaded tbb::flow::graph and ZeroMQ
Bill Torpey
wallstprog at gmail.com
Fri Dec 13 22:10:35 CET 2019
Tried using PAIR sockets for IPC and ran into problems (https://github.com/WallStProg/zmqtests/tree/master/threads <https://github.com/WallStProg/zmqtests/tree/master/threads>, https://github.com/zeromq/libzmq/issues/2759 <https://github.com/zeromq/libzmq/issues/2759> ).
They have signficant limitations in any case.
Why not use one of the thread-safe sockets?
> On Dec 13, 2019, at 12:38 PM, Brett Viren <brett.viren at gmail.com> wrote:
>
> Bill Torpey <wallstprog at gmail.com> writes:
>
>> - In practice, it’s possible to share PUB sockets using mutexes if you’re careful.
>
> How about PAIR? Can I let one end be used from multiple different
> threads if I assure all such access is protected by a mutex?
>
> I'll add this to my test but if there is some prior experience with this
> setup, please let me know.
>
> Thanks!
> -Brett.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20191213/1cd008f1/attachment.htm>
More information about the zeromq-dev
mailing list