D 2019-05-05T05:45:44.229
J icomment The\sstandard\sfunctionality\sfrom\sthe\sTCL\scommand\s“trace”\scan\sgenerally\sbe\snice.\r\nBut\sI\ssuggest\sto\stake\sconsequences\sfrom\smulti-threaded\sdata\sprocesssing\sbetter\sinto\saccount.\r\n\r\nIt\scan\shappen\sthat\sa\sthread\swould\slike\sto\swait\son\sa\sstatus\schange\sin\sthe\srunning\ssoftware.\r\nThe\sTCL\scommand\s“thread::cond\swait”\s(and\sthe\sfunction\s“Tcl_ConditionWait”)\sis\san\sappropriate\sprogramming\sinterface\sfor\sthis\spurpose.\r\nhttps://www.tcl.tk/man/tcl/ThreadCmd/thread.htm#M42\r\nhttps://tcl.tk/man/tcl8.7/TclLib/Thread.htm\r\n\r\nThe\sthread\swhich\swill\schange\sshared\sresources\swould\soccasionally\slike\sto\snotify\scompanions\sby\susing\sthe\scorresponding\scondition\svariable.\r\nhttps://en.wikipedia.org/wiki/Monitor_(synchronization)#Condition_variables
J login elfring
J mimetype text/plain
K 6ff44a29cea4b3fb72634f551cecb5917f837cf2
U elfring
Z cbf3d3b7e399dee35001faee68724e8a