From: SourceForge.net <no...@so...> - 2003-09-05 23:30:40
|
Bugs item #801429, was opened at 2003-09-05 19:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=801429&group_id=10894 Category: 48. Embedding Support Group: 8.5a0 Status: Open Resolution: None Priority: 5 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=801429&group_id=10894 |
From: SourceForge.net <no...@so...> - 2003-09-06 00:44:09
|
Bugs item #801429, was opened at 2003-09-05 16:30 Message generated for change (Comment added) made by mistachkin You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=801429&group_id=10894 Category: 48. Embedding Support Group: 8.5a0 Status: Open Resolution: None Priority: 5 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: Joe Mistachkin (mistachkin) Date: 2003-09-05 17: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 |
From: SourceForge.net <no...@so...> - 2005-07-07 20:42:30
|
Bugs item #801429, was opened at 2003-09-05 19:30 Message generated for change (Comment added) made by dgp 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: 48. Embedding Support Group: obsolete: 8.5a0 Status: Open Resolution: None Priority: 5 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: Don Porter (dgp) Date: 2005-07-07 16: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-05 20: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 |
From: SourceForge.net <no...@so...> - 2005-11-21 19:03:14
|
Bugs item #801429, was opened at 2003-09-05 19:30 Message generated for change (Comment added) made by dgp 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: 49. Embedding Support Group: obsolete: 8.5a0 Status: Open Resolution: None >Priority: 9 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: Don Porter (dgp) Date: 2005-11-21 14: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 16: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-05 20: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 |
From: SourceForge.net <no...@so...> - 2006-10-11 12:47:21
|
Bugs item #801429, was opened at 2003-09-05 19:30 Message generated for change (Settings changed) made by dgp 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: 49. Embedding Support Group: obsolete: 8.5a0 Status: Open Resolution: None >Priority: 7 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: Don Porter (dgp) Date: 2005-11-21 14: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 16: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-05 20: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 |
From: SourceForge.net <no...@so...> - 2009-12-09 19:48:05
|
Bugs item #801429, was opened at 2003-09-05 19:30 Message generated for change (Settings changed) made by dgp 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: Don Porter (dgp) Date: 2005-11-21 14: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 16: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-05 20: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 |
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 |
From: SourceForge.net <no...@so...> - 2010-02-27 12:10:48
|
Bugs item #801429, was opened at 2003-09-06 00:30 Message generated for change (Settings changed) 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: Pending >Resolution: Fixed 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: 2010-02-27 12:10 Message: 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). ---------------------------------------------------------------------- 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 |
From: SourceForge.net <no...@so...> - 2010-03-09 17:29:54
|
Bugs item #801429, was opened at 2003-09-05 19:30 Message generated for change (Comment added) made by dgp 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: Closed Resolution: Fixed 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: Don Porter (dgp) Date: 2010-03-09 12:29 Message: no hang in the half-baked demo anymore. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2010-02-27 07:10 Message: 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). ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2009-12-29 12: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 14: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 16: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-05 20: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 |