comp.lang.ada
 help / color / mirror / Atom feed
From: evangeli@cnam.fr (Evangelista Sami)
Subject: task synchronization and returns in accept
Date: 8 Feb 2005 07:36:11 -0800
Date: 2005-02-08T07:36:11-08:00	[thread overview]
Message-ID: <5f59677c.0502080736.64ead69f@posting.google.com> (raw)

Hello all

Let's take this piece of code:
-----------------------------------------
procedure Test is
   task type T1;
   task body T1 is
   begin
      null;
   end;
   task type T2 is
      entry E;
   end T2;
   task body T2 is
   begin
      accept E do
         declare
            T : T1;
         begin
            return;
         end;
      end E;
   end;
   My_T2 : T2;
begin
   My_T2.E;
end;
-----------------------------------------

what does exactly happen at the "return" statement in the accept.
does it wait for the termination of task T?

Thanks for any help

Sami



             reply	other threads:[~2005-02-08 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-08 15:36 Evangelista Sami [this message]
2005-02-08 15:56 ` task synchronization and returns in accept Martin Krischik
replies disabled

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