Skip to content
Tcl Source Code Artifact [e1602389a0]
Login

Artifact [e1602389a0]

Artifact e1602389a06093e5da5c58ebca4c01163378108c723bad612c764c080851b2fd:

Ticket change [e1602389a0] - Ticket [de232b49f26da1c1|de232b49f2] <i>write-only nonblocking refchan and Tcl internal buffers</i> status still Open with 3 other changes by pooryorick on 2024-04-02 12:36:43.
D 2024-04-02T12:36:43.625
J icomment Adjusting\sthe\stimer\slike\sthat\sis\sone\sway\sto\sachieve\srate\scontrol,\sbut\r\nAshok\sis\sarguing\sthat\srate\scontrol\sshould\sbe\sachieved\sby\swaiting\sfor\sthe\r\ndevice\sto\ssignal\sthat\sit's\sready\sfor\smore\swrites.\s\sThe\sproblem\sis\sthat\r\nTcl\swrites\sto\sa\sbuffer\swithout\sactually\scalling\sthe\s<code>[write]</code>\r\nprocedure\sthat\sa\srefchan\sprovides.\s\sThe\s<code>[write]</code>\sprocedure\r\nis\sthe\slogical\s(and\sonly)\splace\sfor\sa\srefchan\sto\ssignal\sthat\sits\sready\r\nfor\sanother\swrite\smore,\sbut\sbecause\sof\sthis\s"write\sto\sa\sbuffer\sinstead\r\nof\sperforming\sa\swrite\sto\sthe\sdevice"\sphenomenon,\srefchan\smust\r\ncontinuously\ssignal\sthat\sit's\sready\sfor\sa\swrite,\swhich\smeans\ssetting\sup\r\na\srepeatedly-scheduled\sevent.\r\n\r\nI\sthink\sone\sthing\swe\scan\sall\sagree\son\sis\sthat\sif\sa\sdevice\ssignals\sthat\r\nits\sready\sfor\sa\swrite,\sand\sTcl\swrites\sto\sa\sbuffer\sinstead\sof\sactually\r\nperforming\sa\swrite,\sthen\sTcl\scan\sassume\sthat\sthe\sdevice\sis\sstill\sready\r\nfor\sa\swrite,\sand\scan\ssafely\sgenerate\sa\s"writable"\sevent\sagain.\s\sWe\r\nshould\sbe\sable\sto\sdevelop\san\simproved\sapproach\sbased\son\sthis\sassumption,\r\nand\sthe\snew\sapproach\swill\seliminate\sthe\sneed\sfor\srefchans\sto\sset\sup\ssuch\r\nrepeatedly-scheduled\sevents,\sand\sprobably\salso\seliminate\sthe\sneed\sfor\r\nthat\s<code>CreateChannelScheduledEvent()<code>\sfunction\sthat\ssebres\sjust\r\npointed\sto.
J login pooryorick
J mimetype text/x-fossil-wiki
K de232b49f26da1c18e07513d4c7caa203cd27910
U pooryorick
Z bfe446da883486b0edabc4676bad5ce4