Overview
| Artifact ID: | 7127637f7c203fa21ee851a88485fc139d595607 |
|---|---|
| Ticket: | 2946474fffffffffffffffffffffffffffffffff
[exit] doesn't wait for background flushes of close channels |
| User & Date: | ferrieux on 2011-08-11 06:31:34 |
Changes
- icomment:
When you say "Then the thread exits, the event is still in the queue.", what about the following slightly different interpretation: - the thread owns a channel - on that nonblocking channel, a background flush'n'close is scheduled - then the threads tries to exit :) - at that time, Tcl_FinalizeThread is called, and calls TclFinalizeIOSubsystem - without the patch, TFIOS just gives up instantly (the reason for this ticket) and the thread is dead. No further callback is to be feared on its behalf. - with the patch, TFIOS *blocks* on flushing the channel. So the callbacks (refchan) are done IN THE THREAD - for lack of synchronization, the execution of this thread overlaps the next test and wreaks havoc due to the shared variable names as you identified. If you agree with this sequence, then what about just joining the thread before ending 14.15 ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"