comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: multitasking: finishing execution
Date: 20 Jun 2002 10:53:19 -0400
Date: 2002-06-20T15:00:59+00:00	[thread overview]
Message-ID: <usn3it31c.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 1HhQ8.8744$ZP1.1591823@news11-gui.server.ntli.net

"chris.danx" <spamoff.danx@ntlworld.com> writes:

> Hi,
> 
> Is calling the entry finish sufficient to terminate the task?  The code of
> the entry isn't the concern, but the behaviour of entries.  Consider the
> following procedure
> 
> <snip example code>

The "Ada way" to terminate a task is with a "terminate" alternative:

select
   accept <some entry>
or
   terminate;
end select;

See ARM 9.7.2.

It is often not obvious how to set up your task to both get some work
done and be ready to quit when told to. But it is important to get it
right :).

-- 
-- Stephe



  parent reply	other threads:[~2002-06-20 14:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20  9:57 multitasking: finishing execution chris.danx
2002-06-20 12:48 ` Nige
2002-06-20 16:19   ` chris.danx
2002-06-20 20:40     ` Stephen Leake
2002-06-20 14:53 ` Stephen Leake [this message]
2002-06-20 19:30   ` chris.danx
2002-06-21 18:14     ` Ted Dennison
replies disabled

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