Skip to content
Tcl Source Code Artifact [f6bd609c7c]
Login

Artifact [f6bd609c7c]

Artifact f6bd609c7c5fccf5e902d0122f47c6f02f594f87:

Ticket change [f6bd609c7c] - New ticket [ef28eb1f15167156|ef28eb1f15] <i>TCL_FILE_EVENTS cannot drive async I/O alone</i>. by dgp on 2015-08-10 17:47:14.
D 2015-08-10T17:47:14.773
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment \r\nAnother\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 foundin all
J is_private 0
J login dgp
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter dgp
J subsystem 25.\sChannel\sSystem
J title TCL_FILE_EVENTS\scannot\sdrive\sasync\sI/O\salone
J type Bug
K ef28eb1f15167156c8984df7ef430574743255bd
U dgp
Z bec8b18fc49ab6d19c6eb7b39cc0704f