Skip to content
Tcl Source Code Artifact [80b04221cc]
Login

Artifact [80b04221cc]

Artifact 80b04221cc412a712608ccdc62efbfcc9a2ba6e7:

Ticket change [80b04221cc] - Ticket [2407783fffffffff|2407783fff] <i>Seek causes IO channel to be shared between all interps</i> status still Open with 4 other changes by andreas_kupries on 2008-12-11 00:09:44.
D 2008-12-11T00:09:44
J icomment @dgp:\sA\sbit\sof\sclarification.\n\nThe\sfunctions\sof\stclChannelType\sdo\sindeed\sTcl_Preserve/Release\sChannelState\spointers.\sThis\sis\showever\snot\sbecause\sof\smy\sfix.\sThey\sdid\sthat\seven\sbefore\sI\sput\smy\shands\sinto\sthis\sparticular\spie.\sAs\ssuch\sit\sis\san\sintegral\spart\sof\sthis\sTclObjTyp\sI\swas\snot\sreally\swilling\sto\schange\sfor\smy\sfix.\sWhat\sI\sdid\swas\sto\sextend\sthis\sscheme\sto\sthe\sInterp\spointer\sI\sadded\sto\sthe\sintrep.\sIt\smight\sactually\snot\sbe\snecessary,\sas\sthe\sInterp\spointer\sis\sonly\scopied\sand\scompared,\snever\sde-referenced,\scontrary\sto\sthe\sChannelState.\n\nI\sshould\sfurther\snote\sthat\sChannelState\sstructures\sactually\shave\sa\srefCount.\sThis\showever\sis\sused\sto\scount\show\smany\sinterpreters\shave\sthe\sthe\schannel\sTcl_RegisterChannel()'ed\sin\sthem,\sand\sa\srefCount\s>\s0\sprevents\sfully\sclosing\sthe\schannel.\sI\sdo\snot\sbelieve\sthat\sit\sis\sa\sgood\sidea\sto\suse\sthis\srefCount\sto\scount\show\smany\sTcl_Obj\srefer\sto\sthis\schannel.\sAs\sit\smeans\sthat\sa\s'close\s$f'\swill\snever\sreally\sclose\sthe\schannel,\sbut\sonly\sat\ssome\sarbitrary\stime\slater\swhen\sthe\slast\sintrep\sgoes\saway.\sWhich\sactually\smay\sbe\snever\sduring\sthe\slifetime\sof\san\sinterp.\n\nI\swill\ssee\sthat\sI\scan\sget\sa\stest\sdone\sfor\s8.5\sand\s8.6\sin\sthe\snext\sdays,\sand\sthen\scheck\sif\smay\sPreseve/Release\sof\sthe\sInterp*\swas\soverkill.\sLikely\syes.\sIf\sso\sI\swill\sremove\sthat\spart\sof\sthe\spatch.\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 2407783fffffffffffffffffffffffffffffffff
U andreas_kupries
Z 836ac92c064b11860eb15d7e9bc08807