comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Taking 'Access of single task/protected object
Date: Fri, 8 Jan 2016 09:52:04 +0100
Date: 2016-01-08T09:52:04+01:00	[thread overview]
Message-ID: <n6nt6m$jgd$1@dont-email.me> (raw)
In-Reply-To: <n6mtog$6kd$1@loke.gir.dk>

Le 08/01/2016 00:52, Randy Brukardt a écrit :
> There's no reason to use a single task other 
> than convinience, and once you're code gets complex enough, "convinience" 
> should be the last of your concerns.

Hmmm.... not really. There can be value in having syntactic guarantee
that a task is really a singleton, i.e. that there cannot be any other
of its kind (for example, if the task is the only thing declared in a
package spec, then there is no issue of concurrent access to global
variables in the package body).

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

      reply	other threads:[~2016-01-08  8:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-07 16:18 Taking 'Access of single task/protected object G.B.
2016-01-07 17:30 ` Dmitry A. Kazakov
2016-01-07 18:16 ` Jeffrey R. Carter
2016-01-07 19:38   ` J-P. Rosen
2016-01-07 23:52   ` Randy Brukardt
2016-01-08  8:52     ` J-P. Rosen [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