: <i>Is Tcllib thread safe? - code analysis, flaw detection</i> plus 7 other changes
by
.
D 2003-01-27T22:19:58
J closedate 2003-01-27T15:19:58
J closer dkf
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nMarkus:\sTcllib\sdoes\snot\scontain\sany\snon-Tcl\ssource\sfiles,\sby\nexplicit\spolicy\s(though\snot\sfor\sthread-safety\sbut\srather\napp-developer\saccessibility\sreasons.)\s\sConsequently,\sthey\nare\sguaranteed\sto\sbe\sat\sleast\sas\sthread-safe\sas\sthe\sTcl\score\nitself.\s\sHowever,\sthere\sare\ssome\soperations\sthat\sare\spart\sof\nthe\score\swhich\sare\sbest\snot\sused\sfrom\sa\smulti-threaded\ncontext,\sthough\sthe\sonly\sone\sI\scan\sthink\sof\sright\snow\sis\n[cd]\s(because\sit\saffects\sa\sper-process\sresource.)\s\sHowever,\nit\sis\squite\spossible\s(and\sin-fact\seasy,\sespecially\swith\sthe\nright\soptions\sto\s[glob]\setc.)\sto\swrite\sTcl\sscripts\sthat\nnever\srely\son\sthe\scurrent\sdirectory\safter\sa\sstart-up\speriod,\nand\sit\sis\spoor\spolicy\sindeed\sto\swrite\sa\slibrary\swhich\ndepends\son\sthe\scurrent\sdirectory!\s\sUltimately,\sit\sis\sbest\sto\nkeep\sthe\scurrent\sdirectory\sas\sa\suser-concept,\scoupling\seach\n[cd]\sto\sa\srequest\sto\schange\sthe\scurrent\sdirectory\sby\sthe\nuser.\n\nClosing\sthis\sFRQ\ssince\sit\sis\scategorically\ssatisfied\sto\sthe\nextent\sthat\sthe\sTcl\sproject\sat\sSF\sis\sinterested\sin\sit.\s\nFurther\squestions\sshould\sbe\sraised\swith\sthe\stcllib\sproject\nitself,\sor\sin\sthe\stcl-threads\smailing\slist.\n
J login dkf
J mimetype text/plain
J resolution Accepted
J status Closed
J username dkf
K 674514ffffffffffffffffffffffffffffffffff
U dkf
Z 2d865983cbc91590c78f892af41c2dfc