9.7.3 Conditional Entry Calls
A
conditional_entry_call
issues an entry call that is then cancelled if it is not selected immediately
(or if a requeue-with-abort of the call is not selected immediately).
A procedure call may appear rather than an entry call for cases where
the procedure might be implemented by an entry.
Syntax
Dynamic Semantics
40 A
conditional_entry_call
may briefly increase the Count attribute of the entry, even if the conditional
call is not selected.
Examples
Example of a conditional
entry call:
procedure Spin(R : in Resource) is
begin
loop
select
R.Seize;
return;
else
null; -- busy waiting
end select;
end loop;
end;