annotate gcc/ada/libgnarl/a-extiti.ads @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ------------------------------------------------------------------------------
kono
parents:
diff changeset
2 -- --
kono
parents:
diff changeset
3 -- GNAT RUN-TIME COMPONENTS --
kono
parents:
diff changeset
4 -- --
kono
parents:
diff changeset
5 -- A D A . E X E C U T I O N _ T I M E . T I M E R S --
kono
parents:
diff changeset
6 -- --
kono
parents:
diff changeset
7 -- S p e c --
kono
parents:
diff changeset
8 -- --
kono
parents:
diff changeset
9 -- This specification is derived from the Ada Reference Manual for use with --
kono
parents:
diff changeset
10 -- GNAT. In accordance with the copyright of that document, you can freely --
kono
parents:
diff changeset
11 -- copy and modify this specification, provided that if you redistribute a --
kono
parents:
diff changeset
12 -- modified version, any changes that you have made are clearly indicated. --
kono
parents:
diff changeset
13 -- --
kono
parents:
diff changeset
14 ------------------------------------------------------------------------------
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 -- This unit is not implemented in typical GNAT implementations that lie on
kono
parents:
diff changeset
17 -- top of operating systems, because it is infeasible to implement in such
kono
parents:
diff changeset
18 -- environments.
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 -- If a target environment provides appropriate support for this package,
kono
parents:
diff changeset
21 -- then the Unimplemented_Unit pragma should be removed from this spec and
kono
parents:
diff changeset
22 -- an appropriate body provided.
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 with System;
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 package Ada.Execution_Time.Timers is
kono
parents:
diff changeset
27 pragma Preelaborate;
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 pragma Unimplemented_Unit;
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 type Timer (T : not null access constant Ada.Task_Identification.Task_Id) is
kono
parents:
diff changeset
32 tagged limited private;
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 type Timer_Handler is access protected procedure (TM : in out Timer);
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 Min_Handler_Ceiling : constant System.Any_Priority := System.Priority'Last;
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 procedure Set_Handler
kono
parents:
diff changeset
39 (TM : in out Timer;
kono
parents:
diff changeset
40 In_Time : Ada.Real_Time.Time_Span;
kono
parents:
diff changeset
41 Handler : Timer_Handler);
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 procedure Set_Handler
kono
parents:
diff changeset
44 (TM : in out Timer;
kono
parents:
diff changeset
45 At_Time : CPU_Time;
kono
parents:
diff changeset
46 Handler : Timer_Handler);
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 function Current_Handler (TM : Timer) return Timer_Handler;
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 procedure Cancel_Handler
kono
parents:
diff changeset
51 (TM : in out Timer;
kono
parents:
diff changeset
52 Cancelled : out Boolean);
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 function Time_Remaining (TM : Timer) return Ada.Real_Time.Time_Span;
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 Timer_Resource_Error : exception;
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 private
kono
parents:
diff changeset
59 type Timer (T : access Ada.Task_Identification.Task_Id) is
kono
parents:
diff changeset
60 tagged limited null record;
kono
parents:
diff changeset
61 end Ada.Execution_Time.Timers;