Skip to content
Tcl Source Code Artifact [fcbd143564]
Login

Artifact [fcbd143564]

Artifact fcbd143564138dd043f58c1d27d8f73b27df9b0f:

Ticket change [fcbd143564] - Ticket [1323992fffffffff|1323992fff] <i>socket.test failures</i> status still Open with 4 other changes by andreas_kupries on 2005-10-14 02:03:07.
D 2005-10-14T02:03:07
J icomment Logged\sIn:\sYES\s\nuser_id=75003\n\nI\sagree\swith\sthe\sifdef\sTHREADS\sas\sa\sshort-term\ssolution.\n\nFrom\sthe\sdigging\sDon\shas\sdone\sit\sseems\sto\sme\sthat\sduring\sthe\n_regular_\sclosing\sof\schannel\sTcl_ClearChannelHandlers\n(Tcl_CCH)\sis\scalled\sat\sa\svery\searly\spoint\sin\stime,\swhen\sit\nstill\smay\sgenerate\sevents\sfor\sflushing\sin\sthe\sbackground.\nAnd\sit\sis\sexpected\sthat\sthese\sevents\sare\sprocessed,\sand\sfull\nshutdown\sof\sthe\schannel\shappens\sonly\safter\sthat\shas\shappened.\n\nSo\sour\sbelief\sthat\swe\scould\sco-opt\sTcl_CCH\sas\sthe\spoint\nwhere\sevent-processing\sis\sswitched\soff\sin\spreparation\sfor\nthe\stransfering\sof\sa\schannel\swas\swrong.\sWe\sneed\sit,\sbut\nbecause\sof\sthe\sabove\sit\smust\sonly\sremove\sthe\sparts\sgenerated\nevents,\sand\snot\sthe\sparts\sprocessing\sthose\sstill\sin\sthe\npipeline.\sThis\spart\sof\sthe\stransfer\shas\sto\sgo\ssomewhere\nelse.\sWe\smight\stry\sto\sco-opt\sa\sdifferent\sfunction\sfor\sthis,\nor\swe\smay\sneed\sa\snew\spublic\sAPI.\n\nZoran,\swe\swill\shave\sto\sgo\sback\sto\sthe\smails\swe\sexchanged,\ndig\sout\sthe\scurrent\scode\ssequences\sused\sby\sthe\schannel\ntransfer\sand\ssee\sif\sone\sof\s\sthe\sother\sfunctions\sused\scan\sbe\nco-opted\sinstead.\n\nIf\s\snot,\sthen\sa\snew\sAPI\swill\sbe\sneeded\sto\sperform\sthe\naction.\sAnd\sif\swe\scome\sto\sthat\sI\swill\salso\sentertain\sthe\nnotion\sof\smoving\sthe\swhole\stransfer\sprocess\sand\sstructures\ninto\sthe\score,\sas\sa\sTcl_TransferChannel\s(chan,\ndestinationthread)\sor\ssome\ssuch.\sBecause\swe\swould\sneed\sa\sTIP\nanyway\sin\sthat\scase.\sThe\sthreads\spackage\swould\sthen\scontain\nonly\sthe\sTcl\scommand\saround\sthat\sAPI.\n\n...\sI\sbelay\sthat.\sWe\sdo\snot\sneed\snew\sAPIs.\sWe\scan\suse\sthe\nexisting\sAPIs\sto\sget\sthe\sinstance\sdata\sof\sa\schannel,\sits\nwatchproc,\sand\sthen\s\sdo\sthe\scall\s"watchproc\s(instance,\s0)"\nusing\sthe\spiecves\swe\sgot.\sNo\sneed\sfor\sadditional\sAPIs.\nTcl_ChannelWatchProc,\sTcl_GetChannelInstanceData,\sand\nTcl_GetTopChannel.\sThe\slatter\sto\smake\ssure\sthat\sour\nwatchproc\scall\sgoes\sthrough\sthe\swhole\sstack,\sif\sthere\sis\sone.\n\n
J login andreas_kupries
J mimetype text/plain
J username andreas_kupries
K 1323992fffffffffffffffffffffffffffffffff
U andreas_kupries
Z b359440a62ef7b13c114cc552eb8cde2