.
D 2019-04-24T04:57:10.680
J comment Another\strouble\sthat\sarose\sin\sthe\srecent\sTCLCORE\sthread\son\r\nsocket\shandler\sbugs\sreported\sby\sBrian\sGriffin.\r\n\r\nThe\sTcl_DoOneEvent()\sroutine\sadvertises\sthe\sability\sto\schoose\r\ninput\sflags\sto\sselectively\sprocess\ssubsets\sof\sall\spossible\sevents.\r\n\r\nThe\sflag\sTCL_FILE_EVENTS\shas\sa\sname\sthat\ssuggests\sit\swill\r\ndrive\sall\sthe\sevent\shandling\sneeded\sto\smake\sasync\sI/O\swork.\r\nThat\sis\snot\strue.\r\n\r\nThe\sway\sasync\sI/O\sis\sactually\simplemented\srelies\salso\son\r\ntimer\sevents\sin\sseveral\splaces.\s\sThis\sincludes\sdraining\sinput\r\nbuffers\sand\skick-starting\sasync\s[chan\scopy]\soperations.\r\n\r\nThe\smost\sdifficult\schange\sneeded\sto\saddress\sthis\sappears\sto\r\nbe\sin\sthe\sfacilities\soffered\sby\s[chan\screate]\sto\sdefine\sso-called\r\nreflected\schannels.\s\sThe\s[chan\spostevent]\scommand\soffered\sto\r\nsignal\schan\sevents\swithin\sa\ssingle\sthread\sis\simplemented\sby\r\na\sdirect\scall\sto\sTcl_NotifyChannel().\s\sIf\sinstead,\syou\swish\sto\r\nhave\sa\strip\sthrough\sthe\sevent\sloop\smanage\sthis\s(async\svs\ssync),\r\nthe\sonly\sscript-level\stool\sthat\sappears\savailable\sis\sthe\suse\sof\r\na\stimer\sevent\sestablished\swith\sthe\s[after]\scommand.
J icomment Fixed\sin\s[e066e24f36f6]\sfor\sissue\s[67a5eabbd3d1].
J login pooryorick
J mimetype text/x-fossil-wiki
J status Pending
K ef28eb1f15167156c8984df7ef430574743255bd
U pooryorick
Z f974fa56973987e41e4ecdc29e1e77d8