[plt-scheme] Cleanup on Servlet Timeout (Again)
2008/8/28 Henk Boom <lunarc.lists at gmail.com>:
> Right, thanks. I was planning on checking the status of done-s when
> handling the fail-s event, but I forgot. Now that I think about it,
> that would be unintuitive behaviour for fail-s, so I've changed it to
> set! fail-s to #f after posting done-s so that I know not to post it
> as well.
. . . which will of course fail when the thread finishes its job and
then terminates, causing both the done-s and thread-dead-evt events to
be available almost at once, and giving me a 50-50 chance of rolling
back changes every time. . . Looks like the other way was better.
This is tricky!
Henk