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: 103376,5b0308c42409e5df X-Google-Attributes: gid103376,public From: "R. Tim Coslet" Subject: Re: Protected Objects (Geeenhills & VxWorks) Date: 2000/02/10 Message-ID: <38A33B11.5019A281@kaisere.com>#1/1 X-Deja-AN: 584292443 Content-Transfer-Encoding: 7bit References: <38A30F81.F0CAF1E6@kaisere.com> <38A31EF9.ECE0B395@averstar.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-la.pbi.net 950221429 206.170.2.191 (Thu, 10 Feb 2000 14:23:49 PST) Organization: SBC Internet Services MIME-Version: 1.0 NNTP-Posting-Date: Thu, 10 Feb 2000 14:23:49 PST Newsgroups: comp.lang.ada Date: 2000-02-10T00:00:00+00:00 List-Id: Ooops! R. Tim Coslet Tucker Taft wrote: > It is not clear who sets the value of Waiting. > > protected body Example_Protected_Object is > > > > entry Send when Available or > > I_Am_Tired_Of_Waiting is > > begin > > > > -- Do some things here... > > > > -- reset the barrier flags > > Available := False; > > I_Am_Tired_Of_Waiting := False; > > > > -- reset the waiting flag > > Waiting_For_It := False; My mistake. In cleaning out the code for this posting I didn't change this names right.This should have read: -- reset the waiting flag Waiting := False; > > > > end Send; > > > > procedure Signal_Available is > > begin > > > > -- set the barrier flag to indicate data has been received > > Available := True; > > > > end Signal_Available; > > > > procedure Check_For_Timeout is > > begin > > > > -- set the barrier flag to indicate data has not been received > > I_Am_Tired_Of_Waiting := Waiting; > > > > -- set the waiting flag > > Waiting := True; > > > > end Check_For_Timeout; > > > > end Example_Protected_Object;