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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e2a9ad4da0a64a87 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.in2p3.fr!in2p3.fr!proxad.net!cleanfeed2-b.proxad.net!nnrp8-1.free.fr!not-for-mail Return-Path: x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: RE: Timing events in GNAT GPL 2006 Date: Tue, 23 Jan 2007 09:20:53 -0800 In-Reply-To: Thread-Topic: RE: Timing events in GNAT GPL 2006 Thread-Index: Acc33V3l0QyR4sBIRpSn1/LbB/hUZgA4yHwwAZRtSTA= References: <20070114131026.92190@gmx.net> From: "Vo, Anh \(US SSA\)" To: "Rolf Ebert" , X-OriginalArrivalTime: 23 Jan 2007 17:20:53.0652 (UTC) FILETIME=[D60D8540:01C73F12] X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 23 Jan 2007 18:25:01 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1169573101 news-2.free.fr 31426 88.191.14.223:46011 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8434 Date: 2007-01-23T18:25:01+01:00 -----Original Message----- From: comp.lang.ada-bounces@ada-france.org [mailto:comp.lang.ada-bounces@ada-france.org] On Behalf Of Vo, Anh (US SSA) Sent: Monday, January 15, 2007 8:30 AM To: Rolf Ebert; comp.lang.ada@ada-france.org Subject: RE: RE: Timing events in GNAT GPL 2006 -----Original Message----- From: Rolf Ebert [mailto:rolf.ebert_nospam_@gmx.net]=20 Sent: Sunday, January 14, 2007 5:10 AM To: Vo, Anh (US SSA); comp.lang.ada@ada-france.org Subject: Re: RE: Timing events in GNAT GPL 2006 << > There are three things wrong with your codes. Two of them are critical. > 1. The protected procedure Inc_Clock has wrong parameter mode. It must > be in out mode. > 2. The call Set_Handler from the protected procedure will result in a > deadlock it is run. > 3. Protected object must be declared at the library level. Yours is not. > As the result, non-local pointer cannot point to local object error at > lines 20 and 26 <<<$$$ OK, I fixed issues 1 and 3 in my code and I can observe issue 2. I don't understand, however, why the deadlock occurs. Is the deadlock required by the RM or is it just due to GNAT's implementation of Timing_Events? >> This deadlock occurred when I tested it. I was supposed to find out why? But, I have not had a chance to investigate it yet. $$$>>> OK, I have some good news to share. The deadlock has been fixed in GNAT/GCC- 4.3-20070119 on RedHat. Therefore, the handoff task is no longer needed. AV