annotate gcc/ada/libgnarl/a-taster.ads @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
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 . T A S K _ T E R M I N A T I O N --
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 with Ada.Task_Identification;
kono
parents:
diff changeset
17 with Ada.Exceptions;
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 package Ada.Task_Termination is
kono
parents:
diff changeset
20 pragma Preelaborate (Task_Termination);
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 type Cause_Of_Termination is (Normal, Abnormal, Unhandled_Exception);
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 type Termination_Handler is access protected procedure
kono
parents:
diff changeset
25 (Cause : Cause_Of_Termination;
kono
parents:
diff changeset
26 T : Ada.Task_Identification.Task_Id;
kono
parents:
diff changeset
27 X : Ada.Exceptions.Exception_Occurrence);
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 procedure Set_Dependents_Fallback_Handler
kono
parents:
diff changeset
30 (Handler : Termination_Handler);
kono
parents:
diff changeset
31 function Current_Task_Fallback_Handler return Termination_Handler;
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 procedure Set_Specific_Handler
kono
parents:
diff changeset
34 (T : Ada.Task_Identification.Task_Id;
kono
parents:
diff changeset
35 Handler : Termination_Handler);
kono
parents:
diff changeset
36 function Specific_Handler
kono
parents:
diff changeset
37 (T : Ada.Task_Identification.Task_Id) return Termination_Handler;
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 end Ada.Task_Termination;