[zeromq-dev] Mac OS X: test_shutdown_stress sometimes fails
Martin Sustrik
sustrik at 250bpm.com
Mon Nov 22 15:42:56 CET 2010
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...
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: async_finalise.patch
Type: text/x-patch
Size: 9904 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101122/370d5ce5/attachment.bin>
More information about the zeromq-dev
mailing list