Combining entry_call, accept_statment and terminate_statment
From: Lutz Donnerhacke (lutz_at_iks-jena.de)
Date: 03/29/04
- Next message: chris: "KDE Anyone?"
- Previous message: Hyman Rosen: "Re: Is 3.15p -still- the latest GNAT 'p' release?"
- Next in thread: Randy Brukardt: "Re: Combining entry_call, accept_statment and terminate_statment"
- Reply: Randy Brukardt: "Re: Combining entry_call, accept_statment and terminate_statment"
- Reply: James Rogers: "Re: Combining entry_call, accept_statment and terminate_statment"
- Maybe reply: Randy Brukardt: "Re: Combining entry_call, accept_statment and terminate_statment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 19:41:34 +0000 (UTC)
Sorry, but I do not get it:
I have a protected type with an entry:
protected type PT is
entry X;
end PT;
p : PT;
Now I have to construct a task dealing with new data from the protected
type, an call from other tasks or the termination of the parent task.
task type TT is
entry Config;
end TT;
task body TT is
begin
loop
select
p.X;
-- dealing with new data
or accept Config;
-- modify the task
or terminate;
end select;
end loop;
end TT;
Unfortunly this is not allowed. Either accept and terminate or an entry_call
and a delay can be combinded. I wonder how to solve such as deadlock. It
should be a common idiom, but I had no luck in choosing searching keywords.
Any hint?
- Next message: chris: "KDE Anyone?"
- Previous message: Hyman Rosen: "Re: Is 3.15p -still- the latest GNAT 'p' release?"
- Next in thread: Randy Brukardt: "Re: Combining entry_call, accept_statment and terminate_statment"
- Reply: Randy Brukardt: "Re: Combining entry_call, accept_statment and terminate_statment"
- Reply: James Rogers: "Re: Combining entry_call, accept_statment and terminate_statment"
- Maybe reply: Randy Brukardt: "Re: Combining entry_call, accept_statment and terminate_statment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|