Skip to content
Tcl Source Code Artifact [38b030db87]
Login

Artifact [38b030db87]

Artifact 38b030db87034eb31f11fc15b447339fda92da00:

Ticket change [38b030db87] - Closed ticket [872298ffffffffff|872298ffff]: <i>Locked access to global variables</i> plus 7 other changes by dkf on 2004-01-07 18:51:18.
D 2004-01-07T18:51:18
J closedate 2004-01-07T11:51:18
J closer dkf
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nThis\sFRQ\sis\sinvalid\sbecause\sTcl\sand\sthe\sthread\sextension\nalready\sprovide\sall\sthe\stools\srequired.\s\sIf\sthere\sis\nanything\sfurther\sneeded,\sit\sshould\sbe\sprototyped\swithin\sthe\ncontext\sof\stcllib\sfirst.\s\sOn\syour\sspecific\spoints:\n\n1)\shttp://tcl.tk/man/tcl8.4/TclCmd/trace.htm\s(and\sthere\sis\nan\sequivalent\smechanism\sat\sthe\sC\slevel)\sallows\sall\sTcl\nvariable\sreads\sand\swrites\sto\sbe\strapped\sand\sclever\sthings\sdone.\n\n2)\sGlobal\svariables\sare\sjust\sglobal\sto\san\sinterpreter\n(except\sfor\sthe\s::env\sarray,\swhich\sis\sdeeply\smagical,\smessy,\nand\shas\sproper\slocking\sbehind\sthe\sscenes\sIIRC.)\s\nInterpreters\sare\salways\ssingle-threaded;\smulti-threaded\sTcl\nhas\smultiple\sinterpreters,\sbut\seach\sinterp\sis\sconstrained\sto\na\ssingle\sthread\s(this\sis\sa\sfundamental\sdesign\smodel\sthing.)\n\sHence\sa\s-synchronized\soption\sis\s(mostly)\sirrelevant\sas\sall\nvariable\saccesses\sare\salready\ssufficiently\ssynchronized;\sthe\nshared-variable\sstuff\sin\sthe\sthread\spackage\s(which\sI\sbelieve\nyou\salready\sknow\sabout)\sis\show\syou\sget\svariables\svisible\nacross\smultiple\sinterpreters.\n
J login dkf
J mimetype text/plain
J resolution Invalid
J status Closed
J username dkf
K 872298ffffffffffffffffffffffffffffffffff
U dkf
Z e5995cdfd334650ebbabb5133c47904b