<i>Channel name recycling is dangerous</i> status still Open with 4 other changes
by
.
D 2009-07-25T17:32:02
J icomment Oh\syes\syou're\sright,\sI\sforgot\schannel\stransfer.\sOf\scourse\sthe\scounter\smust\sbe\sprocess-global,\sthen.\sThe\sProcessGlobal\sAPI\sin\stclUtil.c\slooks\sa\sbit\sof\san\soverkill\sthough;\sI'd\ssimply\ssay\n\n\s\s\s\s\s\sint\sTcl_GetUnique(void)\n\s\s\s\s\s\s{\n\s\s\s\s\s\s\s\s\s\s\sint\sres;\n\s\s\s\s\s\s\s\s\s\s\sTcl_MutexLock(&uniqueLock);\n\s\s\s\s\s\s\s\s\s\s\sres=tclUnique++;\n\s\s\s\s\s\s\s\s\s\s\sTcl_MutexUnlock(&uniqueLock);\n\s\s\s\s\s\s\s\s\s\s\sreturn\sres;\n\s\s\s\s\s\s}\n\nAlso,\sit\smight\sbe\swise\sto\sname\sthe\sroutine\sTcl_GetUniqueChannelIndex\sto\sconvey\sits\smain\spurpose,\savoiding\s"dilution"\swith\sother\smore\sfrequent\suses,\swhich\swould\saccelerate\swrapping\sto\sMAXUINT.\n\nRe\sthe\sadvanced\schannel\slifetime\smanagement\syou\spropose\sto\sexpose\sto\sscript\slevel,\sAndreas:\sI\sagree,\sit\swould\sbe\sa\snifty\stool,\sbut\sit\sis\sorthogonal\sto\sthe\s"uniqueness\sreform"\sI'm\sproposing\shere.\sBasically\sthe\sreform\swould\skill\san\sentire\scategory\sof\sbugs\swithout\sscripter\sintervention.\sExplicit\slifetime\smanagement\sdoes\sneed\sthe\sprogrammer's\sinvolvement,\smay\sbe\sused\sby\ssome\sbut\snot\sall.\sWhy\snot\smake\sit\sa\sseparate\sFreq\s?\n\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2826430fffffffffffffffffffffffffffffffff
U ferrieux
Z cf7493901114e4ffe3edcab3c66ae9f5