From: "wiljan" <W.Derks@nl.cis.philips.com>
Subject: How to wait for task completion
Date: 1996/09/15
Date: 1996-09-15T00:00:00+00:00 [thread overview]
Message-ID: <01bba2e8$c45aad90$35208b82@wd> (raw)
Is there a simply way to wait until a task has completed in Ada?
I have a pointer to a task type:
task type tsk;
type ptsk is access tsk;
p:ptsk;
At a certain point I want to clean up the resources that the task is
using but this can only be done when the task is completed.
One can do something like:
while not p.all'terminated loop
delay 0.01;
end loop
Another option whould be to define an entry for the task and call that
entry. When the task terminated then the entry will raise a tasking error.
I have the idea that there must be a simpler way to accomplish this.
Wiljan
next reply other threads:[~1996-09-15 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-15 0:00 wiljan [this message]
1996-09-15 0:00 ` How to wait for task completion Samuel Tardieu
1996-09-16 0:00 ` wiljan
1996-09-17 0:00 ` Samuel Tardieu
1996-09-17 0:00 ` Norman H. Cohen
1996-09-17 0:00 ` wiljan
1996-09-18 0:00 ` Tucker Taft
1996-09-18 0:00 ` Norman H. Cohen
1996-09-17 0:00 ` wiljan
1996-09-17 0:00 ` Ted Dennison
1996-09-18 0:00 ` Jon S Anthony
1996-09-15 0:00 ` David C. Hoos, Sr.
1996-09-20 0:00 ` Stephen & Tammy House
1996-09-16 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox