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,FREEMAIL_FROM, 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 Path: g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!proxad.net!cleanfeed2-a.proxad.net!nnrp4-1.free.fr!not-for-mail Return-Path: X-Greylist: delayed 406 seconds by postgrey-1.24 at green; Sun, 14 Jan 2007 14:17:12 CET Content-Type: text/plain; charset="iso-8859-1" Date: Sun, 14 Jan 2007 14:10:26 +0100 From: "Rolf Ebert" In-Reply-To: MIME-Version: 1.0 References: Subject: Re: RE: Timing events in GNAT GPL 2006 To: "Vo, Anh \(US SSA\)" , comp.lang.ada@ada-france.org X-Authenticated: #21385218 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 8bit 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: 14 Jan 2007 14:20:01 MET NNTP-Posting-Host: 88.191.14.223 X-Trace: 1168780801 news-4.free.fr 311 88.191.14.223:33256 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:8131 Date: 2007-01-14T14:20:01+01:00 > 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? > I designed for both one shot and periodic timers using Timing Event. If > it is helpful, I will post my code here. Just let me know. Although I found by now your discussion from around March 2006, I'd like to see your code. Thanks for your fast response. Rolf -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f�r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer