Ada Programming/Keywords/delay
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Delay statements
[edit] Relative delays
delay Wait_Time;
This language feature is only available in Ada 2005.
The Ravenscar profile forbids the use of the relative delay statement:
pragma Restrictions (No_Relative_Delay)
[edit] Absolute delays
delay until Next_Time;
[edit] Select statements
[edit] Delay alternative
Selective accept:
select when Cond => accept_statement statements or delay_alternative end select;
[edit] Timed entry call
select entry_call_alternative or delay_alternative end select;
[edit] Asynchronous transfer of control
select delay until Abort_Time; statements then abort abortable_part end select;
[edit] See also
[edit] Wikibook
- Ada Programming
- Ada Programming/Keywords
- Ada Programming/Tasking
- Ada Programming/Pragmas/Restrictions/No_Relative_Delay
[edit] Ada Reference Manual
- 9.7 Select Statements (Annotated)
- 9.7.1 Selective Accept (Annotated)
- 9.7.2 Timed Entry Calls (Annotated)
- 9.7.4 Asynchronous Transfer of Control (Annotated)
[edit] Ada Quality and Style Guide
| Ada Keywords | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|