Skip to content
Tcl Source Code Artifact [f755148d51]
Login

Artifact [f755148d51]

Artifact f755148d51a7e16ab663f93291bfafa8c2904c657eedf7cd6d8ed69e1b013bb7:

Ticket change [f755148d51] - Ticket [0221b993a19fd8d1|0221b993a1] <i>Tcl command [update idletasks] doesn&#39;t skip main loop in Tcl_DoOneEvent</i> status still Open with 3 other changes by erikleunissen on 2021-03-16 18:15:36.
D 2021-03-16T18:15:36.264
J icomment Corroborating\sthe\smisbehaviour:\r\n\r\nI've\sput\sa\sprintf()\sinside\sthe\scrucial\scode\ssnippet\sin\sTcl_DoOneEvent(),\slike:\r\n\r\n\tif\s((flags\s&\sTCL_ALL_EVENTS)\s==\sTCL_IDLE_EVENTS)\s{\r\n\t\s\s\s\sprintf("***\\n");\r\n\t\s\s\s\sflags\s=\sTCL_IDLE_EVENTS\s|\sTCL_DONT_WAIT;\r\n\t\s\s\s\sgoto\sidleEvents;\r\n\t}\r\n\r\nThis\sprintf()\sis\sskipped\sby\s[update\sidletasks]\sin\sa\stclsh,\sbut\safter\sloading\sTk\s(which\shas\sa\sdifferent\simplementation\sof\sthe\s"update"\scommand),\sthe\sprintf()\sstatement\sis\sexecuted.\r\n\r\nThis\sconfirms\smy\ssuspicion,\sthat\s[update\sidletasks],\scalled\sfrom\stclsh\s(no\sTk\sloaded)\sdoesn't\sskip\swhat\sit\sshould\sskip\sinside\sTcl_DoOneEVent().\sThe\sconsequences\sare\sprobably\snot\sas\ssevere\sas\sthat\sit\sservices\stimer\sand\sfile\sevents,\sbut\sit\sdoes\scarry\sout\sa\sbunch\sof\suseless\swork\s(harmful\swork\snot\sexcluded),\slike\schecking\sinappropriate\sevent\ssources.\r\n\r\nThe\sremedy\sis\ssimple\s(stripping\sthe\soffending\sTCL_WINDOW_EVENTS\sinside\sTcl_UpdateObjCmd()\s).\sA\spatch\s(against\stcl8.6.11)\sis\sprovided\sanyway\sto\sprevent\sany\sambiguity.
J login erikleunissen
J mimetype text/plain
K 0221b993a19fd8d1b72db4e79286c0861e7eb83c
U erikleunissen
Z 1851e46fb0d154b641d14f39de994024