comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Taking 'Access of single task/protected object
Date: Thu, 7 Jan 2016 17:52:47 -0600
Date: 2016-01-07T17:52:47-06:00	[thread overview]
Message-ID: <n6mtog$6kd$1@loke.gir.dk> (raw)
In-Reply-To: n6m9s5$gs7$1@dont-email.me

"Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org> wrote in message 
news:n6m9s5$gs7$1@dont-email.me...
...
> Presumably the desire is to have multiple single tasks, all with an entry
> Something, so that the operations of the type can call different tasks. In 
> this
> situation, there would be a finite set of known single tasks, so the type 
> could
> hold the task ID of the appropriate task, and operations could select the 
> task
> to call based on the ID.

That's the point of task interfaces: each such task would have the task 
interface as a progenitor. You'd still need to give the task type a name, 
but what's the harm in that? 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.

                            Randy.

>Jeff Carter
>"My brain hurts!"

Seems appropriate when talking about task interfaces. ;-)





> -- 
> Jeff Carter
> "My brain hurts!"
> Monty Python's Flying Circus
> 21 


  parent reply	other threads:[~2016-01-07 23: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 [this message]
2016-01-08  8:52     ` J-P. Rosen
replies disabled

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