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.8 required=5.0 tests=BAYES_00,URI_HEX autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e53617e6821a1c7e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-01 05:46:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!212.97.175.23!not-for-mail From: Jano Newsgroups: comp.lang.ada Subject: Re: Suspicious reentrant semaphore Date: Thu, 1 May 2003 14:46:16 +0200 Message-ID: References: NNTP-Posting-Host: 212.97.175.23 X-Trace: fu-berlin.de 1051793159 13495403 212.97.175.23 (16 [49872]) X-Newsreader: MicroPlanet Gravity v2.50 Xref: archiver1.google.com comp.lang.ada:36803 Date: 2003-05-01T14:46:16+02:00 List-Id: Randy Brukardt dice... > Jano wrote in message ... > >Hello everybody, > >Leaving aside why I have done that (yes, poor design, I'm removing it > >anyway ;-), I would like to know if my package is right or really is > >there some race condition. Please comment on it. I know that > >Current_Task shouldn't be called inside entries (in fact Gnat doesn't > >allow it, I tried :-P) but doesn't complain about it being used in > >barriers. Anyways, I have a (maybe wrong) feel about that being related > >to the deadlock. > > > Why don't you use the attribute defined for this purpose? E'Caller > returns the task-id of the caller. Thanks, Randy. I didn't remembered of that attribute. I'm studying your example right now. -- ------------------------- Jano 402450.at.cepsz.unizar.es -------------------------