From: Jano <nono@celes.unizar.es>
Subject: Re: Suspicious reentrant semaphore
Date: Thu, 1 May 2003 14:46:16 +0200
Date: 2003-05-01T14:46:16+02:00 [thread overview]
Message-ID: <MPG.191b35859c2ad3299896f0@News.CIS.DFN.DE> (raw)
In-Reply-To: vb02ga5bun2lcc@corp.supernews.com
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
-------------------------
prev parent reply other threads:[~2003-05-01 12:46 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-29 22:04 Suspicious reentrant semaphore Jano
2003-04-30 8:06 ` Dmitry A. Kazakov
2003-05-01 12:33 ` Jano
2003-05-02 7:28 ` Dmitry A. Kazakov
2003-05-02 11:24 ` Jano
2003-05-02 20:29 ` tmoran
2003-05-05 11:24 ` Michal Morawski
2003-05-05 17:42 ` Simon Wright
2003-05-05 18:03 ` Jano
2003-05-05 20:18 ` Micha� Morawski
2003-04-30 13:07 ` Ian Broster
2003-05-01 12:33 ` Jano
2003-04-30 17:39 ` Randy Brukardt
2003-04-30 23:21 ` Peter Richtmyer
2003-05-01 4:59 ` Simon Wright
2003-05-01 12:46 ` Jano [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox