Artifacts Associated With Ticket 801429ffffffffffffffffffffffffffffffffff
Ticket change [ba08245a22] (rid 129249) by dgp on 2003-09-05 23:30:40:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It appears that Tcl_SetMainLoop() -- like Tcl_Main() -- is not thread safe, and for that reason should not be in any stubs table.
- foundin initialized to: "obsolete: 8.5a0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "50. Embedding Support"
- title initialized to: "Tcl_SetMainLoop: not thread safe?"
- type initialized to: "Bug"
Ticket change [65a8d8b2bc] (rid 102590) by mistachkin on 2003-09-06 07:44:04:
- icomment:
Logged In: YES user_id=113501 Is there some reason why it can't be made thread-safe using a mutex?
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [620fb99f93] (rid 92350) by dgp on 2005-07-08 03:42:29:
- icomment:
Logged In: YES user_id=80530 possibly related chat: dgpthe half-baked example is the master thread Tcl_Main()... [16:20]dgpevals a script that brings in the Thread package, creates a second thread... [16:20]dgp...then sends a message to [package require Tk] in that other thread. [16:21]dgpThat would call Tcl_SetMainLoop and establish an event loop in the first thread, while it is needed in the second one. dgp% package require Thread 2.6.1 % set t [thread::create] tid0x803 % thread::send $t {package require Tk} [16:40]dgpdisplays a root window, and then hangs. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [9abfd373ca] (rid 111010) by dgp on 2005-11-22 02:03:04:
- icomment:
Logged In: YES user_id=80530 hoping to fix this for 8.4.12
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"
- icomment:
Ticket change [a122ab5ac5] (rid 109668) by dgp on 2006-10-11 19:47:17:
- priority changed to: "7 High"
Ticket change [bd375298c4] (rid 101875) by dgp on 2009-12-10 02:48:05:
- priority changed to: "9 Immediate"
Ticket change [6fe2aaa3c5] (rid 100388) by dkf on 2009-12-30 00:16:09:
- icomment:
Am I correct in saying that this is seeking to install a new main loop from a subsidiary thread when the main thread's main loop is operating? Ooooh....
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [1e1a4eb6c4] (rid 90920) by dkf on 2010-02-27 19:10:47:
- icomment:
Pushed the state set by Tcl_SetMainLoop into TSD for Tcl HEAD (8.6). If we really want to support the functionality now as global state, that's also possible (and in fact probably easier than before too given that accesses to the "global" state are now factored out internally).
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [3527b8e416] (rid 106872) by dkf on 2010-02-27 19:10:48:
- closedate changed to: "2010-02-27T12:10:48"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Pending"
Ticket change [57b5299076] (rid 117669) by dgp on 2010-03-10 00:29:53:
- closedate changed to: "2010-03-09T17:29:53"
- closer changed to: "dgp"
- icomment:
allow_comments - 1 no hang in the half-baked demo anymore.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"