Artifacts Associated With Ticket 1552653fffffffff
Ticket change [b0d8147839] (rid 98047) by nobody on 2006-09-05 13:19:42:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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] - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "None"
- title initialized to: "add Tcl_RunMainLoop()"
- type initialized to: "RFE"
Ticket change [45b08138ae] (rid 99392) by dkf on 2006-09-05 20:44:14:
- assignee changed to: "dgp"
- subsystem changed to: "50. Embedding Support"
Ticket change [578ca727e0] (rid 94502) by dgp on 2006-09-05 21:20:18:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ccc83b9b1e] (rid 95766) by dgp on 2006-09-05 21:26:03:
- 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...
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment: