From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d0077c2a3f44fc09 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Port LPT + ADA (whta do I wrong?) Date: Wed, 8 Dec 2004 09:27:48 +0100 Message-ID: <1oiqtc4remzd3$.1f3hkv2bs9y2d.dlg@40tude.net> References: <1gr5159dmj2vk.5tkxiw6kxrmv.dlg@40tude.net> <1olbt9ia2fuuo$.qbyglb1cl3g8.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net R88bgfUa/wt0v/oAymyexgOcyuQa8p/j9E4BHXAHZ6+0iuJxM= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:6832 Date: 2004-12-08T09:27:48+01:00 List-Id: On Tue, 7 Dec 2004 20:28:11 -0800, Steve wrote: > Before using OVERLAPPED operations I found the little ideosyncracy that if I > had one thread waiting on a read, another thread couldn't do a write until > the read finished. Using overlapped the write causes the read to wake up, > the write does it's thing. When my code detects that the read hasn't > finished, it goes back and reads again. A pain in the butt, but it works. > > I remember finding an article on Microsofts site describing overlapped I/O > and how it was a new and special feature that they had implemented. That > was news to me since I have written communications applications on other > operating systems where you don't have to do anything special to have a read > task and a write task work on the same communications port. For those who knew RSX-11 and VMS overlapped I/O is quite natural. In fact when I first saw how UNIX SysV dealt with full duplex stuff I was upset! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de