Overview
| Artifact ID: | 7308304899370492177dc7a5c006b93163a4dffd |
|---|---|
| Ticket: | 3408824fffffffffffffffffffffffffffffffff
iocmd.tf-24.16 unstable w/ -DPURIFY |
| User & Date: | andreas_kupries on 2011-09-18 07:28:51 |
Changes
- icomment:
Yes, "testchannel cut/splice" are tcltest's method of moving a channel between threads. The package Thread has the public method, a 'thread transfer' command. Internally both use the same C APIs. For reflected channels specificially we can only move (ownership of) the Channel structures between threads, the Tcl part has to stay behind in the thread the channel was created in, because we do not know what dependencies in terms of code, variables, packages, etc. this part has. When such a separation between the levels happens Events and the Tcl Event Queue are used by the C level to send the necessary instructions to the thread handling the Tcl part instead of invoking the script code on its own, plus mutexes and condition variables to wait and get any results. Everything in tclIORChan.c and tclIORTrans.c which has 'Forward' in the name (regardless of case) is related to this. I would put my eye on the parts interacting with the destruction of threads (cleaning up of structures, events, etc.) as a possible source of the problem.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"