comp.lang.ada
 help / color / mirror / Atom feed
From: Larry Coon <larry@assist.org>
Subject: Re: Task question
Date: 1997/10/13
Date: 1997-10-13T00:00:00+00:00	[thread overview]
Message-ID: <34425F8E.3104@assist.org> (raw)
In-Reply-To: EHp4K0.6MF@world.std.com


Robert A Duff wrote:

[your reply rearranged slightly]

> If you willing to have the extra entry, then do this:
>           accept done;
>           exit;
> So the exit statement comes *after* the accept statement, not inside
> it.

Yes, I figured it out myself using a flag, but switched
to this solution when others suggested it....
 
> When a terminate alternative is selected, the task will finalize all its
> local variables before actually becoming terminated.  So you can put the
> "other stuff" in a Finalize procedure, and have it executed that way.
> If the "other stuff" needs access to local data inside the task, you can
> put that data inside the Limited_Controlled object, or you can get at it
> via an access discriminant.
 
...but since this is a learning experience for me (I've
never worked with tasks before), I'll be sure to check
out these suggestions -- thanks.

Larry Coon
University of California
larry@assist.org  <= Note new address
and lmcoon@home.com




  reply	other threads:[~1997-10-13  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-06  0:00 Task question Larry Coon
1997-10-07  0:00 ` Robert A Duff
1997-10-13  0:00   ` Larry Coon [this message]
1997-10-07  0:00 ` Matthew Heaney
1997-10-07  0:00   ` Larry Coon
1997-10-07  0:00 ` David C. Hoos, Sr.
1997-10-07  0:00   ` Larry Coon
1997-10-07  0:00   ` Steve O'Neill
1997-10-08  0:00   ` Matthew Heaney
1997-10-08  0:00   ` Tom Moran
1997-10-30  0:00 ` Balmacara9
  -- strict thread matches above, loose matches on Subject: below --
2007-12-10 22:12 shaunpatterson
2007-12-10 22:29 ` gpriv
2007-12-10 22:51   ` shaunpatterson
2007-12-10 23:13     ` gpriv
2007-12-10 23:40 ` Robert A Duff
2007-12-11  0:43 ` anon
1997-10-16  0:00 Paul Van Gorp
1997-10-19  0:00 ` elaine.waybright
1997-11-01  0:00   ` Matthew Heaney
1997-10-21  0:00 ` Robert A Duff
1996-09-15  0:00 task question Nicolay Belofastow
1996-09-23  0:00 ` Matthew Heaney
     [not found] <204266@QZCOM>
1986-09-26 17:28 ` Task question Matts_Kallioniemi_QZ
replies disabled

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