comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: task pointer
Date: 1997/11/01
Date: 1997-11-01T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680000111970952560001@news.ni.net> (raw)
In-Reply-To: 344AA999.1AB2@eelab.su.oz.au


In article <344AA999.1AB2@eelab.su.oz.au>, Paul Van Gorp
<paulvg@eelab.su.oz.au> wrote:

You could just declare them as nested tasks, ie

task T1 is
   entry E1;
end;

task body T1 is

   task T2 is
      entry E2;
   end;

   task body T2 is
   begin
      ...
   end;

begin
...
end;

Won't that give each task visibility to the other?

One sign that you really have a single abstraction is that the 2 tasks each
call each other (a dangerous thing though - easy to get deadlock).  The
nesting captures this dependency nicely.

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




      parent reply	other threads:[~1997-11-01  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-20  0:00 task pointer Paul Van Gorp
1997-10-25  0:00 ` Balmacara9
1997-11-01  0:00 ` Matthew Heaney [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