comp.lang.ada
 help / color / mirror / Atom feed
From: "jimmaureenrogers@worldnet.att.net" <jimmaureenrogers@worldnet.att.net>
Subject: Re: run tasks on events
Date: Wed, 28 May 2008 16:47:33 -0700 (PDT)
Date: 2008-05-28T16:47:33-07:00	[thread overview]
Message-ID: <071c2e77-e37e-4d8d-91e8-533090ace9de@x35g2000hsb.googlegroups.com> (raw)
In-Reply-To: g1katv$b8r$1@news.lrz-muenchen.de

On May 28, 1:14 pm, Sebastian Hanigk <han...@in.tum.de> wrote:
> Hello,
>
> sorry if this is a stupid question, but as newcomer to Ada I've stumbled
> over the following problem: having read a bit on HAL/S which has task
> scheduling depending on signals and conditions, I'm a bit at loss how to
> implement such functionality in Ada under the Ravenscar profile (no
> dynamic task spawning).
>
> The example from the HAL/S user guide were tasks running e.g. only in
> the free-fall or ascent/descent phase, started and terminated by
> signals.
>
> Thanks for any help or pointers!
>
> Sebastian

You can create a task which suspends until the ascent/descent phase.
Simply have the task suspend on an accept statement.
The task will complete its execution upon execution of a rendezvous
associated
with the accept statement. Alternately, the task can start out
executing and
be suspended upon a call to a blocked protected entry.

None of this requires dynamic task allocation.

Jim Rogers



  reply	other threads:[~2008-05-28 23:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-28 19:14 [Ravenscar] run tasks on events Sebastian Hanigk
2008-05-28 23:47 ` jimmaureenrogers [this message]
2008-05-29 10:35   ` Sebastian Hanigk
2008-05-29  3:16 ` ahab
2008-05-29 10:31   ` Sebastian Hanigk
2008-05-29 18:56     ` Anh Vo
2008-05-30  6:56       ` Sebastian Hanigk
2008-05-30  7:26 ` [Ravenscar] " Niklas Holsti
2008-05-30  8:57   ` Sebastian Hanigk
2008-05-30 10:47     ` Niklas Holsti
2008-05-30 11:17       ` Sebastian Hanigk
2008-05-30 15:24         ` Alex R. Mosteo
2008-05-30 15:35           ` Ed Falis
2008-05-30 18:02             ` Sebastian Hanigk
2008-05-30 18:11               ` Ed Falis
2008-05-30 11:59       ` stefan-lucks
2008-05-30 12:17 ` jimmaureenrogers
2008-05-30 18:59   ` Sebastian Hanigk
2008-06-02 10:32     ` Alex R. Mosteo
replies disabled

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