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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a0224dc3d1e52f3d X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Streams and Concurrency Date: 1998/12/31 Message-ID: <76gdst$2e3$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 427494245 References: <76c3tv$acs@bgtnsc02.worldnet.att.net> <76cat4$2ldc$1@news.gate.net> <76dn7b$a35@bgtnsc03.worldnet.att.net> <76fe92$46c$1@platane.wanadoo.fr> <76g9ds$ura$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Dec 31 17:56:45 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1998-12-31T00:00:00+00:00 List-Id: In article <76g9ds$ura$1@nnrp1.dejanews.com>, dewar@gnat.com wrote: > In article <76fe92$46c$1@platane.wanadoo.fr>, > "Jean-Pierre Rosen" wrote: > > > > James S. Rogers a �crit dans le message > > <76dn7b$a35@bgtnsc03.worldnet.att.net>... > > >Following is a modest example of what I mean about > > >encapsulating a stream in a protected object. > > >[snip] > > > > Unfortunately, all IO operations are potentially > > blocking, and therefore not allowed from within a > > protected operation. > > To get the effect of mutual exclusion for procedures > > requiring potentially blocking operations, have a look at > > package Protection available from Adalog's components > > page (http://perso.wanadoo.fr/adalog/compo2.htm) > > By the way, JPR here seems to be making the mistake of > assuming that stream = stream_io, a common confusion. The > original question here related to a particular > implementation of streams that you have not seen, and you > do not know if it does any potentially blocking operations. Quite true. What started all this is that I was trying to use streams as a typless buffer between two tasks. One of these tasks is Real-Time, and *can't* wait for another task or I/O (thus the buffer). -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own