.
D 2005-10-11T23:56:37
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nConfirmed\son\sLinux.\sIndeed,\sI\sdo\shave\syet\sto\sunderstand\swhy.\nThe\ssame\s(tests)\spassed\swell\son\sMac\sOSX.\s\n\nThe\spart\sin\squestion\sis\sin\stclIO.c:\n\n\s\s\s\s/*\n\s\s\s\s\s*\sMust\sset\sthe\sinterest\smask\snow\sto\s0,\sotherwise\sinfinite\sloops\n\s\s\s\s\s*\swill\soccur\sif\sTcl_DoOneEvent\sis\scalled\sbefore\sthe\schannel\sis\n\s\s\s\s\s*\sfinally\sdeleted\sin\sFlushChannel.\sThis\scan\shappen\sif\sthe\schannel\n\s\s\s\s\s*\shas\sa\sbackground\sflush\sactive.\n\s\s\s\s\s*\sAlso,\sdelete\sall\sregistered\sfile\shandlers\sfor\sthis\schannel\n\s\s\s\s\s*\s(and\sfor\sthe\scurrent\sthread).\sThis\sprevents\sexecuting\sof\spending\n\s\s\s\s\s*\sfile-events\sstill\ssitting\sin\sthe\sevent\squeue\sof\sthe\scurrent\sthread.\n\s\s\s\s\s*\sWe\sdeliberately\sdo\snot\scall\sUpdateInterest()\sbecause\sthis\scould\n\s\s\s\s\s*\sre-schedule\snew\sevents\sif\sthe\schannel\sstill\sneeds\sto\sbe\sflushed.\n\s\s\s\s\s*/\n\n\s\s\s\sstatePtr->interestMask\s=\s0;\n\s\s\s\s(chanPtr->typePtr->watchProc)(chanPtr->instanceData,\s0);\n\nEffectively\sthis\sdisables\shandling\sof\sevents\sin\sthe\sevent\squeue\nfor\sthe\scurrent\sthread\swhich\sare\sstill\spending\swhen\sthe\schannel\nis\sgetting\sspliced\sout\sof\sthe\sthread\sfor\slater\stransfer\sto\ssome\sother\ninterp/thread.\sIf\sthis\sis\snot\sdone,\sthe\stest\swill\spass\sbut\syour\sapp\nwill\score.\sTo\scheck,\sjust\scomment-out\sthe\sabove\scall\sto\swatchProc\nand\stry\sagain.\s\n\nI\sguess\sI\swill\shave\sto\ssee\swhat\sthis\stest\sis\sactually\strying\sto\stest.\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1323992fffffffffffffffffffffffffffffffff
U vasiljevic
Z ffa9ed351268e638ae75c8be720bd4ca