Skip to content
Tcl Source Code History Of Ticket 1552653
Login

History Of Ticket 1552653

Artifacts Associated With Ticket 1552653

  1. Ticket change [b0d8147839] (rid 98047) by nobody on 2006-09-05 13:19:42:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Routine Tcl_SetMainLoop() sets a static variable that can only be 
      referenced if you use Tcl_Main().
      
      If you don't want to use Tcl_Main(), there's no way to override 
      Tcl_SetMainLoop() so you can catch it if a package calls it (e.g. if Tk gets 
      loaded in a script with "package require Tk").
      
      One option would be to add Tcl_GetMainLoop(), but even easier and what 
      would presumably always be used would be:
      
      void Tcl_RunMainLoop()
      {
         if (mainLoopProc != NULL)
            (*mainLoopProc)();
      
         mainLoopProc = NULL;
      }
      
      Thanks,
      
      [email protected]
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "None"
    11. title initialized to: "add Tcl_RunMainLoop()"
    12. type initialized to: "RFE"
  2. Ticket change [45b08138ae] (rid 99392) by dkf on 2006-09-05 20:44:14:

    1. assignee changed to: "dgp"
    2. subsystem changed to: "50. Embedding Support"
  3. Ticket change [578ca727e0] (rid 94502) by dgp on 2006-09-05 21:20:18:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Thanks for the suggestion.
      If we go this way, it will
      have to be as part of at
      least a slight bit of re-working
      to address the threading
      deficiencies of what's there
      now.  See 801429.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [ccc83b9b1e] (rid 95766) by dgp on 2006-09-05 21:26:03:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I've occasionally pondered
      (ab)using the [package] command
      to enable:
      
        package require eventloop
      
      Packages that need an event loop
      running to functions could 
      include that, and any Tcl_SetMainLoop()
      call could [package provide] this 
      "package" so it would be known
      that an eventloop is on the way.
      
      More to think about...  
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"