[Ada] Add comments in Ada.Task_Initialization
authorArnaud Charlet <charlet@adacore.com>
Thu, 23 Sep 2021 10:04:41 +0000 (06:04 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 5 Oct 2021 08:20:06 +0000 (08:20 +0000)
gcc/ada/

* libgnarl/a-tasini.ads (Set_Initialization_Handler): Update
comments.

gcc/ada/libgnarl/a-tasini.ads

index 2366145..a754c06 100644 (file)
@@ -36,7 +36,11 @@ package Ada.Task_Initialization is
    type Initialization_Handler is access procedure;
 
    procedure Set_Initialization_Handler (Handler : Initialization_Handler);
-   --  Set the global task initialization handler to Handler
+   --  Set the global task initialization handler to Handler.
+   --  Note that only tasks created after this procedure is called will trigger
+   --  a call to Handler. You can use Ada's elaboration rules and pragma
+   --  Elaborate_All, or the pragma Linker_Constructor to ensure this
+   --  procedure is called early.
 
 private
    pragma Favor_Top_Level (Initialization_Handler);