.
D 2000-10-26T00:46:31
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3952\sBug\nVersion:\s8.3b1\nSubmitDate:\s'1999-12-28'\nLastModified:\s'2000-07-25'\nSeverity:\sLOW\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sdavidg\nRelatedBugIDs:\s5791\nOS:\sWindows\s2000\nFixedDate:\s'2000-07-25'\nFixedInVersion:\s8.4a1\nClosedDate:\s'2000-10-25'\n\n\nName:\n\nDavid\sGravereaux\n\n\n\nCVS:\n\nI\supdated\stoday\n\n\n\nCustomShell:\n\ntclAsync.c\schanges\sin\sprogress\n\n\n\nComments:\n\nThe\sunix\snotifier\sstill\sneeds\sa\swake-up\smethod\slike\sthe\swindows'\s\n\nTclpAsyncMark.\s\sThe\stclAsync.c\spatches\saren't\scomplete\swithout\sit.\n\n\n\nObservedBehavior:\n\nLooks\slike\sTclpAsyncMark\sshould\sreside\sin\stclWinNotify.c\srather\sthan\n\ntclWinInit.c\sfor\spurely\sasthetic\sreasons.\s\sI\sforgot\sthe\sprototype\n\nchange\sto\sTclpAsyncMark\sin\sthe\soriginal\spatch.\n\n\n\nPatch:\n\nIndex:\stclWinInit.c\n\n===================================================================\n\nRCS\sfile:\s/cvsroot/tcl/win/tclWinInit.c,v\n\nretrieving\srevision\s1.21\n\ndiff\s-c\s-r1.21\stclWinInit.c\n\n***\stclWinInit.c1999/12/09\s14:44:111.21\n\n---\stclWinInit.c1999/12/28\s04:10:10\n\n***************\n\n***\s815,845\s****\n\n\s\s\s\s\s\s\s\s\s\sTcl_DStringFree(&temp);\n\n\s\s\s\s\s\s}\n\n\s\s}\n\n-\s\n\n\n\n-\s/*\n\n-\s\s*----------------------------------------------------------------------\n\n-\s\s*\n\n-\s\s*\sTclpAsyncMark\s--\n\n-\s\s*\n\n-\s\s*Wake\sup\sthe\smain\sthread\sfrom\sa\ssignal\shandler.\n\n-\s\s*\n\n-\s\s*\sResults:\n\n-\s\s*None.\n\n-\s\s*\n\n-\s\s*\sSide\seffects:\n\n-\s\s*Sends\sa\smessage\sto\sthe\smain\sthread.\n\n-\s\s*\n\n-\s\s*----------------------------------------------------------------------\n\n-\s\s*/\n\n-\s\n\n-\svoid\n\n-\sTclpAsyncMark(async)\n\n-\s\s\s\s\sTcl_AsyncHandler\sasync;/*\sToken\sfor\shandler.\s*/\n\n-\s{\n\n-\s\s\s\s\s/*\n\n-\s\s\s\s\s\s*\sNeed\sa\sway\sto\skick\sthe\sWindows\sevent\sloop\sand\stell\sit\sto\sgo\slook\sat\n\n-\s\s\s\s\s\s*\sasynchronous\sevents.\n\n-\s\s\s\s\s\s*/\n\n-\s\n\n-\s\s\s\s\sPostThreadMessage(mainThreadId,\sWM_USER,\s0,\s0);\n\n-\s}\n\n---\s815,817\s----\n\nIndex:\stclWinNotify.c\n\n===================================================================\n\nRCS\sfile:\s/cvsroot/tcl/win/tclWinNotify.c,v\n\nretrieving\srevision\s1.5\n\ndiff\s-c\s-r1.5\stclWinNotify.c\n\n***\stclWinNotify.c1999/07/02\s22:08:281.5\n\n---\stclWinNotify.c1999/12/28\s04:10:11\n\n***************\n\n***\s512,514\s****\n\n---\s512,542\s----\n\n\s\s{\n\n\s\s\s\s\s\sSleep(ms);\n\n\s\s}\n\n+\s\n\n\n\n+\s/*\n\n+\s\s*----------------------------------------------------------------------\n\n+\s\s*\n\n+\s\s*\sTclpAsyncMark\s--\n\n+\s\s*\n\n+\s\s*Wake\sup\sthe\smain\sthread\sfrom\sa\ssignal\shandler.\n\n+\s\s*\n\n+\s\s*\sResults:\n\n+\s\s*None.\n\n+\s\s*\n\n+\s\s*\sSide\seffects:\n\n+\s\s*Sends\sa\smessage\sto\sthe\smain\sthread.\n\n+\s\s*\n\n+\s\s*----------------------------------------------------------------------\n\n+\s\s*/\n\n+\s\n\n+\svoid\n\n+\sTclpAsyncMark(threadId)\n\n+\s\s\s\s\sTcl_ThreadId\sthreadId;/*\sThread\sID\sfrom\sasync\stoken.\s*/\n\n+\s{\n\n+\s\s\s\s\s/*\n\n+\s\s\s\s\s\s*\sNeed\sa\sway\sto\skick\sthe\sWindows\sevent\sloop\sand\stell\sit\sto\sgo\slook\sat\n\n+\s\s\s\s\s\s*\sasynchronous\sevents.\n\n+\s\s\s\s\s\s*/\n\n+\s\n\n+\s\s\s\s\sPostThreadMessage((DWORD)threadId,\sWM_USER,\s0,\s0);\n\n+\s}\n\nIndex:\stclInt.decls\n\n===================================================================\n\nRCS\sfile:\s/cvsroot/tcl/generic/tclInt.decls,v\n\nretrieving\srevision\s1.19\n\ndiff\s-c\s-r1.19\stclInt.decls\n\n***\stclInt.decls1999/12/12\s22:46:421.19\n\n---\stclInt.decls1999/12/28\s04:11:17\n\n***************\n\n***\s792,798\s****\n\n\s\s\s\s\s\svoid\sTclWinAddProcess(HANDLE\shProcess,\sDWORD\sid)\n\n\s\s}\n\n\s\sdeclare\s21\swin\s{\n\n!\s\s\s\s\svoid\sTclpAsyncMark(Tcl_AsyncHandler\sasync)\n\n\s\s}\n\n\s\s\n\n\s\s#\sAdded\sin\s8.1:\n\n---\s792,798\s----\n\n\s\s\s\s\s\svoid\sTclWinAddProcess(HANDLE\shProcess,\sDWORD\sid)\n\n\s\s}\n\n\s\sdeclare\s21\swin\s{\n\n!\s\s\s\s\svoid\sTclpAsyncMark(Tcl_ThreadId\sthreadId)\n\n\s\s}\n\n\s\s\n\n\s\s#\sAdded\sin\s8.1:\n\n\n\nPatchFiles:\n\nwin/tclWinInit.c\swin/tclWinNotify.c\sgeneric/tclInt.decls\n\n\n\n\n\n#5791\sintegrated.\s\n--\s07/25/2000\sdavidg
J foundin obsolete:\s8.3b1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 49.\sThreading
J title Tcl_AsyncMark\syields\sthe\swrong\sthread\s(more\sfollow-up)
J type Bug
K 217951ffffffffffffffffffffffffffffffffff
U nobody
Z f4d02e81033b4104a4723673ad9786d5