Ada Programming/Keywords/delay
< Ada Programming < KeywordsComputing » Computer Science » Computer Programming » Ada Programming

Delay statements
Relative delays
delay Wait_Time;
The Ravenscar profile forbids the use of the relative delay statement:
pragma Restrictions (No_Relative_Delay)
This language feature is only available from Ada 2005 on.
Absolute delays
delay until Next_Time;
Select statements
Delay alternative
Selective accept:
select when Cond => accept_statement statements or delay_alternative end select;
Timed entry call
select entry_call_alternative or delay_alternative end select;
Asynchronous transfer of control
select delay until Abort_Time; statements then abort abortable_part end select;
See also
Wikibook
- Ada Programming
- Ada Programming/Keywords
- Ada Programming/Tasking
- Ada Programming/Pragmas/Restrictions/No_Relative_Delay
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)
Ada Quality and Style Guide
Ada Keywords | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.