Tcl Source Code

Artifact [934bb3a69d]
Login

Artifact 934bb3a69d721587f74d67c731443655e4bc9a56b14dc0c21ba7c3fcdc739b32:

Ticket change [934bb3a69d] - Ticket [de232b49f2] write-only nonblocking refchan and Tcl internal buffers status still Open with 3 other changes by apnadkarni 2024-04-02 03:16:12.
D 2024-04-02T03:16:12.997
J icomment Nathan,\r\n\r\n*I've\screated\sa\snew\sticket,\s[ac7592e73c10d04b],\sfor\sthe\sidle\squeue\sstarvation\sthat\sAshok\sprovided\san\sexample\sof,\sand\salso\sfixed\sthe\sissue\sby\shaving\stclIO.c/ChannelTimerProc()\sus\sthe\sidle\squeue\sinstead\sof\sthe\sstandard\squeue\sto\sreschedule\sitself.*\r\n\r\nThe\sfollowing\sconcerns\scome\sto\smind\swith\sthis\schange:\r\n\r\n-\sChanging\sto\sthe\sidle\squeue\swould\sseem\sto\shave\ssimilar\seffects\sto\schanging\sthe\sSYNTHETIC_TIMER\sfrom\s0\sto\sa\spositive\snumber.\sThe\scomments\sfor\sthat\s#define\sspecifically\swarn\sagainst\sthat.\r\n\r\n-\sPosting\sto\sthe\sidle\squeue\swhen\sother\sfile\sevents\sare\sposted\sto\sthe\sevent\squeue\sseems\slike\sit\scould\slead\sto\sthe\sreverse\ssituation\swhere\syour\sposted\sevents\sare\sstarved.\r\n\r\n-\sGiven\sthat\sevent\sprocessing\sin\s`Tcl_DoOneEvent`\sand\sits\silk\sallows\sfiltering\sbased\son\sflags\s`TCL_FILE_EVENTS|TCL_TIMER_EVENTS|TCL_IDLE_EVENTS`\sthis\sfurther\sconfuses\swhat\sthose\sflags\smean.\sWill\syour\sevents\sfire\sin\sa\sTCL_FILE_EVENTS\sloop?\r\n\r\nHowever,\sI\sam\snot\sgoing\sto\sspend\stime\schasing\sthe\sabove\swhen\sI\sbelieve\sthe\sfundamental\sdesign\sitself\sis\sflawed,\sirrespective\sof\swhether\syou\suse\sthe\stimer\squeue\sor\sthe\sidle\squeue.
J login apnadkarni
J mimetype text/x-markdown
K de232b49f26da1c18e07513d4c7caa203cd27910
U apnadkarni
Z 6b9482ef16940a98b56544cf0f159675