From: SourceForge.net <no...@so...> - 2009-12-29 17:16:09
|
Bugs item #801429, was opened at 2003-09-06 00:30 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=801429&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 50. Embedding Support Group: obsolete: 8.5a0 Status: Open Resolution: None Priority: 9 Private: No Submitted By: Don Porter (dgp) Assigned to: Don Porter (dgp) Summary: Tcl_SetMainLoop: not thread safe? Initial Comment: It appears that Tcl_SetMainLoop() -- like Tcl_Main() -- is not thread safe, and for that reason should not be in any stubs table. ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2009-12-29 17:16 Message: 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.... ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2005-11-21 19:03 Message: Logged In: YES user_id=80530 hoping to fix this for 8.4.12 ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2005-07-07 21:42 Message: Logged In: YES user_id=80530 possibly related chat: dgp the half-baked example is the master thread Tcl_Main()... [16:20] dgp evals 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] dgp That 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] dgp displays a root window, and then hangs. ---------------------------------------------------------------------- Comment By: Joe Mistachkin (mistachkin) Date: 2003-09-06 01:44 Message: Logged In: YES user_id=113501 Is there some reason why it can't be made thread-safe using a mutex? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=801429&group_id=10894 |