Skip to content
Tcl Source Code Artifact [b348147f42]
Login

Artifact [b348147f42]

Artifact b348147f4234a804dd3522b8f3345a09a6b91eb6:

Ticket change [b348147f42] - Ticket [849901ffffffffff|849901ffff] <i>Cooperative event threading</i> status still Open with 4 other changes by s_a_white on 2005-01-12 18:00:01.
D 2005-01-12T18:00:01
J icomment Logged\sIn:\sYES\s\nuser_id=59929\n\nI\sdid\stry\sout\sthe\sthreading\sextensions\sfirst\sin\sthe\shope\nthey\swould\sdo\swhat\sI\srequired.\s\sHowever\sunless\sthis\sis\nnolonger\strue,\syou\swere\sforced\sto\shave\sthings\slike\sseperate\ninterpreters\sand\ssuch\swhich\sdidn't\swork.\s\sI\sneed\sobjects,\nglobal\svariables,\sdisplays\sto\sbe\saccessable\sby\sboth.\s\sIt\nwould\sbe\sgreat\sif\sthreading\swas\slike\sc\swhere\severything\shad\naccess\sto\severything\sand\syou\sjust\sprotect\sas\srequired,\sthis\nwould\swork\sgreat.\n\nAs\sfor\sthe\sevent\scooperative\sorder\sswitching:\san\sexample\nsituation\s(and\sthere\sare\smany\sdifferent\sothers\sand\salot\smore\ncomplicated)\sis\sthat\sthe\suser\spresses\sa\sbutton\sto\sstart\sa\nsequence.\s\sThis\scalls\ssome\scode,\swhich\scalls\sso\smore\scode,\netc,\setc\sso\swe\sare\snow\sdown\sa\snumber\sof\slevels\son\sthe\sstack\nwith\sspecific\sparameters.\s\sFinally\swe\sget\sto\sa\scentral\spoint\nwhich\swhich\sdecides\sto\sact\son\sit\sbut\ssays\shang\son\sI\scan't\njust\syet\sbecause\sthat\ssection\sof\scode\sis\salready\srunning\sas\nan\supdate\shad\sto\sbe\sexecuted.\n\nThen\sas\sexplained\swe\sare\sforced\sto\sdrop\sthe\sevent\sor\sget\sit\nsomehow\sat\sthe\sback\sof\sthe\sevent\squeue.\s\sIdeally\si\swould\njust\stkwait\son\svariable\sand\sthen\swhen\sthe\sother\scode\nfinishes\sit\swould\sjust\sresume,\showever\sit\snever\sdoes\sbecause\nthe\solder\sevent\sis\spermenantly\sblocked\sby\sthis\sone\sdoing\sa\ntkwait.\n\nI'm\safraid\sI\sam\snot\saware\sin\sthe\schanges\srequired,\sbut\nassumed\sthe\scode\ssupplied\sits\sown\sstack\sthat\swouldn't\sbe\ntied\sto\sthe\sC\sstack\sitself\s(since\stcl\soperations\shave\ndifferent\slifetimes\sto\sthe\sC\sparsing\sof\sthe\stcl).\s\sThe\stcl\npro\sdebugger\salso\sshows\sthe\sstack\srestarting\sso\sthere\nappears\sto\sbe\ssome\sconcept\sof\sseperate\stcl\sstacks\sper\sevent,\nso\shoped\sit\smaybe\sjust\sa\smatter\sof\sorder\sswitching\s(in\ssome\nsort\sof\scontrolled\sway).\n\n
J login s_a_white
J mimetype text/plain
J username s_a_white
K 849901ffffffffffffffffffffffffffffffffff
U s_a_white
Z b45fc5fea268dd951b4e36da30954628