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 <manwoodv...@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@lists.zeromq.org > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev