Skip to content
Tcl Source Code Artifact [1a6b688c1e]
Login

Artifact [1a6b688c1e]

Artifact 1a6b688c1e3b7387126bf601b5bc34ed76acc439:

Ticket change [1a6b688c1e] - Ticket [577014ffffffffff|577014ffff] <i>documentation; wait on thread exits</i> status still Open with 4 other changes by vasiljevic on 2002-07-03 23:47:54.
D 2002-07-03T23:47:54
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\n1.\sIn\scouple\sof\sdays\sthe\s2.4\sversion\sof\sthe\sextension\sis\s\ngoing\sto\sbe\sreleased.\sThis\swill\sinclude\scomplete\s\ndocumentation\sin\sboth\shtml\sand\sunix\sman\sformats.\n\n2.\sWith\sthe\s2.4\sversion,\sit\sis\spossible\sto\spost\sscripts\sto\s\nthreads\sasynchronously\sand\swait\sfor\sresults\sin\sthe\sevent\s\nloop\sof\sthe\sposter.\sThis\sway,\sthread-pools\scan\nbe\simplemented.\sConsider\sthe\sfollowing\sexample:\n\nset\st1\s[thread::create]\nset\st2\s[thread::create]\n\nthread::send\s-async\s$t1\s"set\sa\s1"\sresult\nthread::send\s-async\s$t2\s"set\sb\s2"\sresult\n\nfor\s{set\si\s0}\s{$i\s<\s2}\s{incr\si}\s{\n\s\svwait\sresult\n}\n\nWith\ssome\sclever\swrapping,\syou\scan\simplement\sthe\sdesired\nfunctionality\son\sthe\sscript\slevel\svery\seasily.\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 577014ffffffffffffffffffffffffffffffffff
U vasiljevic
Z c5b5101a23c494bbcb2d3d3804c9468a