Hi Bill,

Bill Torpey <[email protected]> writes:

> - In practice, it’s possible to share PUB sockets using mutexes if you’re 
> careful.
> - It is not possible to share SUB sockets, period.  It may appear to work, 
> but at some point you
> will crash.  (This has to do with lack of synchronization between user code 
> and code running in
> background threads).

Thanks!  It's not what I'd hoped to hear but it saves me from going down
dead ends.

Part of my use case is to extract data from the graph so I'm cheered to
hear that mutexed PUB can work.  I think a tbb::flow node with
concurrency=1 should provide the needed guards.

Injecting data into a graph becomes the remaining problem.  Now I have a
nice excuse to learn the draft socket types!

Thanks again,
-Brett.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to