Hi Martin, On Mon, Nov 22, 2010 at 6:42 AM, Martin Sustrik <[email protected]> wrote: > Dhammika, > >> 1. When finalise function finds out that the initiation is over, it >> sends command to itself, saying "unplug the engine and send it to >> another thread". >> >> 2. The rest of the out_event executes. >> >> 3. The scheduler invokes processing of the event at this point. Thus, >> out_event is not on the stack anymore. > > I'm attaching a patch to exemplify what I had in mind. It's not perfect, it > still fails with test_stress_shutdown, but it should give you an idea... >
I donno, may be we should simplify this. Why don't we add a refcount? Dhammika _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
