Skip to content
Tcl Source Code Artifact [91dbb06547]
Login

Artifact [91dbb06547]

Artifact 91dbb06547b2dd7f2c9304bee9651b16f32a4a47:

Ticket change [91dbb06547] - Ticket [577014ffffffffff|577014ffff] <i>documentation; wait on thread exits</i> status still Open with 4 other changes by vasiljevic on 2002-08-06 06:11:11.
D 2002-08-06T06:11:11
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nWell,\snobody\sever\sclaimed\sso\s:)\s\n\s\nTo\swait\sfor\sa\sthread\sexit,\sone\sshould\screate\sa\sjoinable\s\nthread\sand\sthen\suse\sthread::join.\sThis\sis\sthe\sproper\sway\s\nto\swait\sfor\sa\sthread\sto\sexit.\sThis,\showever\sworks\sonly\sfor\s\nTcl8.4+.\sAnother\sway\sis\sto\sdo\sa\s"thread::release\s-wait"\s\nwhich\swill\swork\sfor\s8.3\sas\swell.\s\n\s\nTo\s"vwait"\son\sa\svariable\swhich\sis\sset\sby\sthe\sremote\sthread\s\nis\sjust\san\sasynchronous\smessage\spassing\sbetween\sthe\s\s\ntarget\sthread\sand\sthe\scaller\sthread.\sThis\sis\sdone\sin\sorder\sto\s\nsimplify\sinteraction\sbetween\sthreads\swhere\sone\s(the\scaller)\s\nis\sdoing\ssomething\sin\sthe\sevent\sloop,\swants\sto\sdelegate\ssome\s\nwork\sto\starget\sthread\sand\s"vwait"\son\sthe\sresult\sto\scome\sback\s\nwithout\sblocking\shis\sevent\sloop.\s\n\s\nSo,\sthese\stwo\sthings\sare\sentirey\sdifferent.\s\nNow,\swhat\swas\syour\s*exact*\squestion?\s\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 577014ffffffffffffffffffffffffffffffffff
U vasiljevic
Z e9fa083e4a44fafb8e9cee965556361a