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,bdb4d50db1f56285 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-14 22:20:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!bnewspeer00.bru.ops.eu.uu.net!bnewsifeed02.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!emea.uu.net!read.news.de.uu.net!not-for-mail Message-ID: <3C43CA34.521A035A@meppen.sema.slb.com> Date: Tue, 15 Jan 2002 07:20:36 +0100 From: Vincent Smeets Organization: CCI - SchlumbergerSema X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.6 sun4m) X-Accept-Language: nl, en, de MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: timed entry call doesnt timeout References: <3C42A089.998D3EA0@meppen.sema.slb.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: zerberus.cci.de X-Trace: 1011075637 read.news.de.uu.net 189 193.103.165.100 X-Complaints-To: abuse@de.uu.net Xref: archiver1.google.com comp.lang.ada:18926 Date: 2002-01-15T07:20:36+01:00 List-Id: Matthew Heaney wrote: > > "Vincent Smeets" wrote in message > news:3C42A089.998D3EA0@meppen.sema.slb.com... > > I am writing a driver for an network protocol which will send data and > > wait for an acknowledgement. I have implemented it in a package (Pkt) > > with a procedure interface. Inside this package, I use a protected type > > and the requeue statement to implement an action with a timeout. > > Why are you making "potentially blocking" calls to Text_IO from inside a > protected object? The call to Text_IO is just for the demostroation in my example. The point is that you can't see the use of my timed select statement at the outside of the package. There is no problem if it is called externaly from the main program (it will give the timeout), but it may not be called from a protected type (which will block forever). -- Vincent Smeets SchlumbergerSema - Competence Center Informatik GmbH Lohberg 10 - 49716 Meppen - Germany tel: +49 5931-805-461 fax: +49 5931-805-175 mail: VSmeets@slb.com web: www.cci.de