Annotated Ada Reference Manual (Ada 202y Draft 1)Legal Information
Contents   Index   References   Search   Previous   Next 

J.15.12 Pragma Relative_Deadline

Syntax

1/3
{AI05-0229-1} The form of a pragma Relative_Deadline is as follows: 
2/3
  pragma Relative_Deadline (relative_deadline_expression);

Name Resolution Rules

3/3
{AI05-0229-1} The expected type for a relative_deadline_expression is Real_Time.Time_Span. 

Legality Rules

4/3
{AI05-0229-1} A Relative_Deadline pragma is allowed only immediately within a task_definition or the declarative_part of a subprogram_body.

Static Semantics

5/3
{AI05-0229-1} For an implementation that supports Annex D, a pragma Relative_Deadline specifies the value of the Relative_Deadline aspect (see D.2.6). If the pragma appears in a task_definition, the expression is associated with the aspect for the task type or single_task_declaration that contains the pragma; otherwise, the expression is associated with the aspect for the subprogram that contains the pragma.

Wording Changes from Ada 2005

5.a/3
{AI05-0229-1} {AI05-0299-1} This subclause is new. Pragma Relative_Deadline was moved here from D.2.6; aspect Relative_Deadline lives there now. 

Contents   Index   References   Search   Previous   Next 
Ada-Europe Ada 2005 and 2012 Editions sponsored in part by Ada-Europe