<i>Tcl command [update idletasks] doesn't skip main loop in Tcl_DoOneEvent</i> status still Open with 3 other changes
by
.
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