[zeromq-dev] How to exit a blocking Receive call cleanly?

Pieter Hintjens ph at imatix.com
Tue May 20 11:03:06 CEST 2014


The best pattern for sending an event from one thread to another is to
use two ZeroMQ sockets, e.g. pair-pair, and send the event as a
message.

On Mon, May 19, 2014 at 10:33 AM, mark <manwoodvice at googlemail.com> wrote:
> I have a blocking Receive call that runs on a background thread for as long
> as the logical endpoint has not be stopped. The call to terminate an
> endpoint comes from a different thread, meaning the blocking Receive call
> throws some kind of exception - ObjectDisposed, SEH or AccessViolation.
>
> Is there a better pattern for this kind of setup? I'm using C# and clrzmq.
>
> Thanks
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list