comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: task synchronization and activation
Date: Mon, 21 Feb 2005 18:01:29 -0600
Date: 2005-02-21T18:01:29-06:00	[thread overview]
Message-ID: <g6KdnfB9ludy6IffRVn-uw@megapath.net> (raw)
In-Reply-To: wcchdk54lxu.fsf@shell01.TheWorld.com

"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wcchdk54lxu.fsf@shell01.TheWorld.com...
...
> For another thing, what about exceptions in the exception handler part
> of a task?  Those can't be handled by the task either, so they get
> dropped on the floor -- nobody gets notified.  And in this case,
> there is no 100% reliable workaround -- you can wrap that handler
> in another block statement with another handler, but then what about
> the 'nother handler?  There's an infinite regress.  You could carefully
> inspect the outermost handler of a task, and make sure it doesn't have
> any bugs (good idea!) -- but it could still get Storage_Error.

In Ada 2005, you can use a task termination handler to detect this. But that
too isn't perfect, because it can't guarantee to work in the face of a
Storage_Error (nothing can, really, and that is the most common problem in
my experience).

                   Randy.







  reply	other threads:[~2005-02-22  0:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-19 15:11 task synchronization and activation Evangelista Sami
2005-02-19 16:11 ` Martin Krischik
2005-02-19 18:11   ` Ed Falis
2005-02-19 20:05   ` Robert A Duff
2005-02-20 10:47     ` Martin Krischik
2005-02-21 19:25     ` Dmitry A. Kazakov
2005-02-21  8:50 ` Jean-Pierre Rosen
2005-02-21 21:55   ` Robert A Duff
2005-02-22  0:01     ` Randy Brukardt [this message]
2005-02-22  7:17     ` Jean-Pierre Rosen
2005-02-23  2:24       ` Robert A Duff
2005-02-23  7:58         ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox