Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 61e46b01a53ddfa268bc231537dee278227455e0
Ticket: 849901ffffffffffffffffffffffffffffffffff
Cooperative event threading
User & Date: s_a_white on 2003-11-26 22:16:37
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "s_a_white"
  9. subsystem changed to: "49. Threading"
  10. title changed to: "Cooperative event threading"
  11. type changed to: "RFE"