From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: task model
Date: Sat, 17 Oct 2009 14:18:54 +0200
Date: 2009-10-17T14:18:53+02:00 [thread overview]
Message-ID: <xqeaoehzajm.jehv9torj000$.dlg@40tude.net> (raw)
In-Reply-To: m2hbty8eer.fsf@hal.futureapps.de
On Sat, 17 Oct 2009 13:10:04 +0200, Georg Bauhaus wrote:
> "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> writes:
>
>> Georg Bauhaus wrote:
>>
>> What's the point of re-raising? Exceptions don't propagate from tasks.
>
> Uhm, I forgot to mention that a handler at some nesting level
> might be reporting, permitting more accurate diagnostic messages.
> It could then decide there is or is not a possible rescue,
> and accordingly re-raise, for example.
The problem is that there is no nesting of tasks in terms of control flow.
There is a parent child relation, but it is no nesting.
If an exception is propagated out of a task, the parent task is doing its
things asynchronously to the child. In order to propagate an exception in
the parent you have only two options:
1. an asynchronous transfer of control = in effect aborting/interrupting
the parent;
2. to synchronize with the parent making a rendezvous with it.
Neither looks much promising.
More generally speaking in Ada tasks are objects. As an object a failed
task may complain no earlier than upon its finalization if no other
contacts (rendezvous) happen. This is too late in all senses.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2009-10-17 12:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-15 17:43 task model Mike
2009-10-15 18:00 ` Ludovic Brenta
2009-10-15 19:15 ` Anh Vo
2009-10-15 19:54 ` Dmitry A. Kazakov
2009-10-15 20:15 ` Jeffrey R. Carter
2009-10-16 14:06 ` Georg Bauhaus
2009-10-16 14:57 ` Brad Moore
2009-10-16 20:06 ` Jeffrey R. Carter
2009-10-17 11:10 ` Georg Bauhaus
2009-10-17 12:18 ` Dmitry A. Kazakov [this message]
2009-10-17 17:34 ` Jeffrey R. Carter
2009-10-19 7:56 ` Jean-Pierre Rosen
2009-10-15 19:55 ` sjw
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox