Re: [TCLCORE] Self-simplifying pipes on Windows ?
by Alexandre Ferrieux other posts by this author
May 10 2008 3:01AM messages near this date
Re: [TCLCORE] Self-simplifying pipes on Windows ?
|
Re: [TCLCORE] Self-simplifying pipes on Windows ?
On 5/8/08, David Gravereaux <davygrvy@[...].com> wrote:
> In all, it really just comes down to the use of the very evil
> TerminateThread(). It would be so much easier to fix if something simple
> like a call to CloseHandle() would interrupt ReadFile() or some other
> measure, but I don't know if such an attempt could pop it loose. I'm sure I
> tried CloseHandle() and a re-wait on the exit status in place of the
> TerminateThread(), but it would be worth a second try.
Unfortunately it still doesn't work.
Worse, Vista and Server2008 bring a new syscall (they don't have
enough yet) called "CancelSynchronousIo" and doing exactly what we
want. This is rather bad news, because it is a rock-solid proof that
there was no other way...
Moreover, even in future versions of Tcl, when Vista is the oldest
supported version, I believe we won't use it either, since we'll be
using waitable handles and no extra threads !
-Alex
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Alexandre Ferrieux
Alexandre Ferrieux
David Gravereaux
Alexandre Ferrieux
David Gravereaux
|