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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc1e,9425605c29366d79 X-Google-Attributes: gidffc1e,public X-Google-Thread: 103376,20fe5a249f5f6562 X-Google-Attributes: gid103376,public From: "Mike Silva" Subject: Re: multi reads, single write Date: 1999/12/16 Message-ID: <5id64.344$tb.41278@news.wenet.net>#1/1 X-Deja-AN: 561690635 References: <3847B024.EC4FD04F@essex.ac.uk> <3854FCC0.D0127CD8@bbnplanet.com> <3858F8FA.CA9BD032@bbnplanet.com> <861z8mfthx.fsf@ppp-107-102.villette.club-internet.fr> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: news@wenet.net X-Trace: news.wenet.net 945381633 206.169.137.33 (Thu, 16 Dec 1999 14:00:33 PST) NNTP-Posting-Date: Thu, 16 Dec 1999 14:00:33 PST Newsgroups: comp.programming.threads,comp.lang.ada Date: 1999-12-16T00:00:00+00:00 List-Id: Ah, thanks for the answer, and for clearing up my confusion (looking back on what I wrote I'm scratching my head wondering what I thought I meant ) Yes, of course, the timeout would occur in an entry, not a function or procedure. Thanks again. Mike Laurent Guerby wrote in message <861z8mfthx.fsf@ppp-107-102.villette.club-internet.fr>... >>...it appears from my newbie reading on protected types that they do >> not allow this. [...] > >They do, a protected entry is just like a task entry. The difference >is between protected procedure and protected entries. Calling a protected >procedure is conceptually not blocking (the model is spin locking). > >Example of bounded waiting on an entry: > > R : Resource; > > ... > > select > R.Seize; > or > delay 1.0; > -- resource still not available after 1 second, try something else > end select; > >--LG