여러 항목을 선택하는 방법을 찾고 있습니다. 다음과 같은 작업을하고 블록을 선택했습니다.Ada 복수 항목 선택
이only allowed alternative in timed entry call is delay
"or" not allowed here
기능 : 의도는이 다음과 같은 컴파일 오류가 발생,
task type t_startup_task is
entry start;
entry started;
end t_startup_task;
task body t_startup_task is
startup_sig : Boolean := False;
begin
accept start;
busy : loop -- wait for external flag to become true
status.read_signal (startup_sig);
if startup_sig then
exit busy;
end if;
delay 0.1;
end loop busy;
accept started;
end t_startup_task;
<...>
startup_task.start;
select
startup_task.started;
or
state.wait_done; -- other entry
abort startup_task;
return False;
or
delay 4.0;
end select;
그러나 일정 시간 후 다른 곳에서 여러 (2) 작업을 실행하는 일이 완료 될 때까지 실행하거나 제한하는 것입니다 실제로 이것을하는 가장 좋은 방법은?