[TCLCORE] Self-simplifying pipes on Windows ?
by Alexandre Ferrieux other posts by this author
Apr 28 2008 2:36PM messages near this date
[TCLCORE] CONCAT1 on byte arrays
|
[TCLCORE] Fwd: Self-simplifying pipes on Windows ?
Hi,
In the process of writing a reference implementation for TIP #304: "A
Standalone [pipe] Primitive for Advanced Child IPC", I have been led
to compare the handling of pipes in the Tcl core and in TclX (Indeed,
TclX has a standalone [pipe] command fulfilling all the needs of the
TIP).
Surprise: while the core takes elaborate steps in Windows to make
command pipelines fileevent-friendly (extra reader/writer threads,
communication through events), TclX does no such thing, and even uses
the same channel type for pipes and regular files:
Tcl_MakeFileChannel(handle).
And, of course, fileevents work on XP with TclX's [pipe]-created channels !
Question: why does this simple thing work on XP ? I assume the more
complex variant in the core was necessary in older Windows. Does
anybody know the critical Windows OS version making it unnecessary ?
(unix poses no problem of course)
Corollary: any objection to my implementing 304 in the TclX way ?
TIA,
-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
|