Skip to content
Tcl Source Code Artifact [8a2829e9d7]
Login

Artifact [8a2829e9d7]

Artifact 8a2829e9d704195089a8df56058fab7430fb7efa:

Ticket change [8a2829e9d7] - Ticket [577014ffffffffff|577014ffff] <i>documentation; wait on thread exits</i> status still Open with 4 other changes by elfring on 2002-08-06 20:33:03.
D 2002-08-06T20:33:03
J icomment Logged\sIn:\sYES\s\nuser_id=572001\n\n1.\sWhy\sdoes\sthis\swork\sonly\swith\s"Tcl8.4+"\sand\snot\swith\searlier\sTCL\s\nversions?\n\n2.\sI\sneed\sadditional\sinformation\sto\sunderstand\syour\scode\s\nexample\sbecause\sI\shave\snot\sfound\sit\sin\sthe\sdocumentation.\sThe\skey\spart\sis\sthe\s\noption\s"joinable".\s\n2.1\sWhat\sdoes\shappen\sif\sa\sthread\sexits\sbefore\sthe\s\nfunction\s"join"\sis\scalled?\sI\sassume\sthat\sthe\sthread\sobject\sand\sits\s\ncorresponding\sidentifier\sare\sdestroyed\sautomatically.\n2.2\sOr\sdoes\sit\s\nwork\slike\sthis?\nThe\sthread's\sexecution\sis\sstopped\sor\shas\sreached\sits\send.\s\nBut\sthis\sis\snot\sthe\ssame\sas\san\sexit\swhich\sterminates\sthe\sobject.\s-\sThe\s"$tid"\sis\sstill\s\nvalid\sbecause\sthe\sfinished\sthread\sremains\sstored\sin\sa\slist\sand\sthe\sfunction\scall\s\n"join"\sremoves\sjust\sa\slist\selement.\n\n3.1\sA\sthread\sthat\scalled\s\n"thread::wait"\sis\swaiting\sfor\sincoming\sTCL\sscripts.\sIs\sthis\swaiting\sstopped\sif\sa\s\nscript\sshould\sbe\sexecuted\sby\sthe\sfunction\scall\s"thread::send"?\sShould\sthe\s\ntarget\sthread\srepeat\sthe\s"thread::wait"\scall?\n3.2\sI\ssuggest\sa\sfunction\sthat\s\ncan\sbe\soffered\sin\sthe\spackage\sto\swait\sfor\smore\swell\sknown\ssituations.\sYour\s\nexample\scan\sbe\sone\s"application"\sfor\sthis.\sHow\sdo\syou\sthink\sabout\sa\s(little)\s\nfunction\sthat\swould\scombine\sthread\screations\sand\sthe\swait\sfor\stheir\s\nexit?\nWhat\sother\s"well\sknown\ssituations"\sdo\syou\sknow?\n\n4.\sPLease\s\nclarify\sthe\srelation\sbetween\sthe\sfunctions\s"thread::create"\sand\s\n"thread::preserve".\sWhat\sis\sthe\sreference\scounter's\svalue\sfor\sa\snew\sthread?\s\nCan\sa\snew\sthread\sbe\s"preserved"\sautomatically?\n\n5.1\sHow\sdo\syou\s\nwork\swith\s"global"\svariables\s(for\sexample:\sTCL\sglobals\sor\svariables\sthat\sare\s\nglobal\sinside\sa\snamespace)\sin\sthe\sthread\spackage?\sDo\sthey\sbelong\sto\sthe\sfirst\s\nthread?\n5.2\sDoes\san\sinitial\sset\sof\sshared\svariables\sexist?\sWhat\sis\sthe\sresult\s\nof\sa\sfunction\scall\s"[tsv::names]"\safter\sprocess\sstart?\n
J login elfring
J mimetype text/plain
J username elfring
K 577014ffffffffffffffffffffffffffffffffff
U elfring
Z 3dd55f3f5db62839839848c497de8db7