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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,971aa11c293c3db1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-26 10:13:37 PST Path: archiver1.google.com!news2.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!news1.tor.metronet.ca!nnrp1.tor.metronet.ca!not-for-mail Message-ID: <3B604FBE.2E8B2733@home.com> From: "Warren W. Gay VE3WWG" X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada The Best Language? References: <5be89e2f.0107170838.c71ad61@posting.google.com> <5be89e2f.0107180235.726d46a8@posting.google.com> <3B55B01A.DAC06D79@icn.siemens.de> <5be89e2f.0107181248.73298c57@posting.google.com> <9j949b$1ujp$1@norfair.nerim.net> <9cV57.54954$WS4.8386096@news6-win.server.ntlworld.com> <9j98pv$20vi$1@norfair.nerim.net> <3B586C51.53C17E25@home.com> <87vgkiav81.fsf@deneb.enyo.de> <3B5EE961.CDAB6A61@home.com> <878zhcpwuq.fsf@deneb.enyo.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 26 Jul 2001 17:13:36 GMT NNTP-Posting-Host: 198.96.47.195 NNTP-Posting-Date: Thu, 26 Jul 2001 11:13:36 MDT Organization: MetroNet Communications Group Inc. Xref: archiver1.google.com comp.lang.ada:10605 Date: 2001-07-26T17:13:36+00:00 List-Id: Florian Weimer wrote: > > "Warren W. Gay VE3WWG" writes: > > >> OTOH, I havent seen a proper thick binding for select() and poll() > >> (using protected objects, so that you can use Ada select to wait for > >> events). With a thin binding, SUSv2 select() and Ada select do not mix > >> at all. > > > > I think you'll find that poll(2) can be interfaced to from Ada without > > much trouble. > > If you call poll(), your task blocks. This is not always desirable; > for example, sometimes you want to respond to entry calls even if > you're waiting on some file descriptor. But that is the whole point of select(2)/poll(2). Ie to block (or timeout) until something interesting happens. If OTOH if you use poll(2) in a context where it doesn't make sense, then the shame is on you-- not the system call. -- Warren W. Gay VE3WWG http://members.home.net/ve3wwg