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