Overview
| Artifact ID: | fcbd143564138dd043f58c1d27d8f73b27df9b0f |
|---|---|
| Ticket: | 1323992fffffffffffffffffffffffffffffffff
socket.test failures |
| User & Date: | andreas_kupries on 2005-10-14 02:03:07 |
Changes
- icomment:
Logged In: YES user_id=75003 I agree with the ifdef THREADS as a short-term solution. From the digging Don has done it seems to me that during the _regular_ closing of channel Tcl_ClearChannelHandlers (Tcl_CCH) is called at a very early point in time, when it still may generate events for flushing in the background. And it is expected that these events are processed, and full shutdown of the channel happens only after that has happened. So our belief that we could co-opt Tcl_CCH as the point where event-processing is switched off in preparation for the transfering of a channel was wrong. We need it, but because of the above it must only remove the parts generated events, and not the parts processing those still in the pipeline. This part of the transfer has to go somewhere else. We might try to co-opt a different function for this, or we may need a new public API. Zoran, we will have to go back to the mails we exchanged, dig out the current code sequences used by the channel transfer and see if one of the other functions used can be co-opted instead. If not, then a new API will be needed to perform the action. And if we come to that I will also entertain the notion of moving the whole transfer process and structures into the core, as a Tcl_TransferChannel (chan, destinationthread) or some such. Because we would need a TIP anyway in that case. The threads package would then contain only the Tcl command around that API. ... I belay that. We do not need new APIs. We can use the existing APIs to get the instance data of a channel, its watchproc, and then do the call "watchproc (instance, 0)" using the piecves we got. No need for additional APIs. Tcl_ChannelWatchProc, Tcl_GetChannelInstanceData, and Tcl_GetTopChannel. The latter to make sure that our watchproc call goes through the whole stack, if there is one.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"