Overview
| Artifact ID: | 61e46b01a53ddfa268bc231537dee278227455e0 |
|---|---|
| Ticket: | 849901ffffffffffffffffffffffffffffffffff
Cooperative event threading |
| User & Date: | s_a_white on 2003-11-26 22:16:37 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
I was wondering if anything could be supported towards cooperative event threading in standard tcl. What I mean is that each event + main gets it own stack. Currently when we call update or use tkwait (and friends) the current execution blocks and a new event starts. The old execution appears not to start until completion of all events. However what about making all stacks independent such that an execution can be marked as sleeping. For an update an old execution will not be marked as runnable until all events are processed providng the same behaviour as before. Things performing tkwait will however become runnable earlier and perhaps at the end of the current event things that have become runnable should be processed before any further new events. The result is basically cooperative multi-tasking for events allowing us to provide mutex style event blocking through tkwait, etc. This sort of support I feel is lacking where you are forced to do an update to complete an operation and a new overlapped operation occurs that you wish to process after the current one has finished, but to do that you must terminate (or somehow regenerate later) the new one.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "s_a_white"
- subsystem changed to: "49. Threading"
- title changed to: "Cooperative event threading"
- type changed to: "RFE"