.
D 2013-04-26T18:55:49
J assignee nijtmans
J cmimetype text/plain
J comment \nThe\smutex\sarrangement\sin\sTclInitSubsystems()\sseems\nto\ssuffer\sfrom\sa\ssignificant\sflaw.\s\sConsider\stwo\sthreads,\nA\sand\sB,\scalling\sthe\sroutine\sconcurrently.\s\sThread\sA\sgets\nthe\slock\sfirst,\ssets\ssubsystemsInitialized\sto\s1\sand\sstarts\ncalling\sthe\sset\sof\ssubsystem\sinitializing\sroutines.\n\nMeanwhile\sthread\sB\smakes\sthe\sinitial\stest\s\n(subsystemsInitialized\s==\s0)\sand\ssince\sthread\sA\nhas\salready\sset\sit\sto\s1,\sthread\sB\sjumps\sstraight\nto\sthe\sbottom\sof\sTIS()\sand\scalls\sTclInitNotifier().\n\nThe\strouble\sis\swhen\sB\scalls\sTclInitNotifier(),\swe\nhave\sno\sidea\show\smuch\sof\sTcl\slibrary\sinitialization\nis\sactually\sdone.\s\sWe\sjust\sknow\sit\sgot\sstarted.\n
J foundin current:\s8.5.14
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 02.\sEvent\sLoops
J title InitSubsystems\smultiple\sthread\sissue
J type Bug
K 3611974fffffffffffffffffffffffffffffffff
U dgp
Z 2429678eaf4f6928367a05169bbb20f2