Skip to content
Tcl Source Code Artifact [9585e731b4]
Login

Artifact [9585e731b4]

Artifact 9585e731b4756f342395f34f03fc62fdea5e0539:

Ticket change [9585e731b4] - Ticket [992108ffffffffff|992108ffff] <i>TclFinalizeLock on Unix not correct.</i> status still Open with 4 other changes by vasiljevic on 2004-07-20 16:55:48.
D 2004-07-20T16:55:48
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nTo:\s\n\s\s"assume\sthat\sall\sthreads\sare\sdestroyed"\s\nis\snot\sthat\seasy.\sWho\sis\sassuming\sthat\sall\sthreads\sare\sdestroyed?\s\nYou\scan\svery\seasily\shave\sapps\susing\sTcl\sAPI\swhich\sdo\screate\s\s\nthreads\susing\sTcl_CreateThread\sand\sTcl\shas\sno\snotion\sof\sthose\s\nwhatsoever.\sTherefore,\sassuming\sthat\sall\sthreads\sare\sdestroyed\s\s\nat\sthe\sTcl_Finalize,\sexcept\sfor\sthe\smain\sthread\sis\snot\salways\strue.\s\s\n\s\nAs\sfar\sas\sI\scan\ssee,\sdestroying\sof\sinitLock\sis\stroublesome\sand\s\s\ncan\slead\s(in\scertain\scircumstances)\sto\sproblems.\s\nI\sthink\sin\sthis\scase\swe\sneed\sto\smake\sa\strade-off.\sEither\sthe\scaller\s\n*never*\scalls\sTcl_Finalize\sfrom\stwo\sthreads\sat\sthe\ssame\stime,\s\nor\swe\saccept\sa\ssingle\smutex\sleak\son\sFreeBSD.\s\s\nThe\sway\sthe\sTcl_Finalize\sis\snow\simplemented\swould\seasily\sallow\s\nany\snumber\sof\sthreads\sto\ssimultaneously\scall\sthe\sTcl_Finalize\s\nw/o\sstepping\son\seach\sother\stoes.\sForcefully\sdeleting\sthe\s\s\ninitLock\sbrings\sa\ssignificant\slimitation\shere.\s\s\n\s\nI\swould\ssuggest,\swe\scan\sbring\sthis\stopic\sto\sthe\sTcl\score\slist\sand\s\nask\sother\speople\swhat\sdo\sto\sin\sthis\scase:\seither\sforce\sTcl_Finalize\s\nto\sreally\sclean\sup\s*everything*\srisking\spotential\scores\sor\sallowing\s\none\sleaked\smutex\son\sFreeBsd\simplementation.\s\nI\scan't\smake\sthis\sdecision\salone\sgiven\sthe\spossible\sside-effects.\s\n\s\n\s\n\s\s\s\s\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 992108ffffffffffffffffffffffffffffffffff
U vasiljevic
Z 86281058b3dc4175a8582610b02add65