|
2004-10-28
| ||
| 13:25 | • Ticket [1055836fff] TclThread_Init called twice? status still Closed with 6 ... artifact: 009ef389dc user: davygrvy | |
| 13:25 | • Closed ticket [1055836fff]. artifact: ffd3c57f54 user: davygrvy | |
| 11:49 | • Ticket [1055836fff]: 4 changes artifact: 35edc84449 user: davygrvy | |
| 11:41 | • Ticket [1055836fff]: 5 changes artifact: 732b62e6dd user: dgp | |
| 10:20 | • Ticket [1055836fff]: 4 changes artifact: f0ee78d13b user: davygrvy | |
| 10:20 | • Add attachment patch.txt to ticket [1055836fff] artifact: f43bc99014 user: davygrvy | |
| 03:08 | • New ticket [1055836fff] TclThread_Init called twice?. artifact: e537ca4da3 user: davygrvy | |
TclThread_Init called twice?
Closed / Fixed1055836fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-28 03:08:04
from Tcl_AppInit() of win/tclAppInit.c, Tcltest_Init is called and from within that, it calls TclThread_Init (line 710 of generic/tclTest.c), yet Tcl_AppInit calls TclThread_Init a second time (line 164 of win/tclAppInit.c). How is right? Should Tcl_AppInit be responsible or Tcltest_Init for loading the thread package that is part of the test suite?
davygrvyplain2004-10-28 10:20:55
File Added - 106783: patch.txt Logged In: YES user_id=7549 Personally, I think the shell should not be responsible as it is good refactoring. See attached patch.
dgpplain2004-10-28 11:41:50
Logged In: YES user_id=80530 It's definitely wrong, though harmless, to have it called from both places. Feel free to make whatever temporary fix you prefer. The correct long term fix is to destroy the phony, obsolete "Thread 1.0" provided by TclThread_Init() completely, and simply bundle the real, [load]-able Thread package with the core.
davygrvyplain2004-10-28 11:49:47
Logged In: YES user_id=7549 Ok, will do. Tcl_AppInit calling TclThread_Init shall get hosed. I once thought the same about the thread package, but Jeff wanted the test code to stay within the core itself. I don't know he feels lately about it. A good goal, though.
davygrvy Closed ticket [1055836fff].
[History diff]2004-10-28 13:25:52
davygrvyplain2004-10-28 13:25:53
Logged In: YES user_id=7549 changes committed to HEAD.
Log in (anonymous is fine) to add a comment.
Attachments:
- patch.txt [download] added by davygrvy on 2004-10-28 10:20:55. [details]