next up previous contents index
Next: Interrupts Up: Time and Clocks Previous: GNAT Implementation   Contents   Index

Summary

GNAT provides two implementations for the simple delay and delay until Ada sentences: one for the Ada programs without tasks, and another for the Ada programs with tasks. An access to a procedure is used to avoid multiple checks in the run-time to call the appropriate subprogram.

A timed entry call allows the task that executes it to make an entry call with the provision that it be awakened and the call canceled, if the call is not accepted before the expiration of a specified delay. As with the conditional entry call, provision is made for execution to resume in different places, depending on whether a rendezvous takes place. In addition to the processing required for a normal entry call, the timed entry call requires scheduling of a wake-up event if the call cannot be accepted immediately. If the call is accepted before this delay expires, the calling task must be removed from the delay queue. If the delay expires first, the task must be removed from the entry queue.

The GNAT implementation of the timed entry call sentences (to a protected entry or to a task entry) and the timed selective accept follow the same steps of the non-timed cases, though a timer is activated when the caller becomes blocked.


next up previous contents index
Next: Interrupts Up: Time and Clocks Previous: GNAT Implementation   Contents   Index
(c) Javier Miranda. Canary Islands (Spain), 2002. Version 1.0