]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Replace references to PO_Simple by Protected_Objects in comments
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 20 Dec 2023 15:27:09 +0000 (16:27 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 6 May 2024 09:11:28 +0000 (11:11 +0200)
The child unit was renamed a while ago.

gcc/ada/

* libgnarl/s-taprob.ads (Protection): Add cross-reference to the
counterpart in System.Tasking.Protected_Objects.Entries.
* libgnarl/s-taskin.ads (Locking Rules): Replace PO_Simple by
Protected_Objects.
* libgnarl/s-tpoben.ads (Protection_Entries): Likewise.

gcc/ada/libgnarl/s-taprob.ads
gcc/ada/libgnarl/s-taskin.ads
gcc/ada/libgnarl/s-tpoben.ads

index 34cfcc7a9bac824c8c279a8385f9ba745d0b6708..e94ec71e768e042a74a515498e63c4d1b56a1b20 100644 (file)
@@ -207,6 +207,12 @@ package System.Tasking.Protected_Objects is
    --  lock and allowed to return from the Lock or Lock_Read_Only call.
 
 private
+   --  The following type contains the GNARL state of a protected object.
+   --  The application-defined portion of the state (i.e. private objects)
+   --  is maintained by the compiler-generated code. Note that there is
+   --  another version declared in System.Tasking.Protected_Objects.Entries
+   --  that handles the case with entries and is controlled.
+
    type Protection is record
       L : aliased Task_Primitives.Lock;
       --  Lock used to ensure mutual exclusive access to the protected object
index 949fb7e66073afbc696bbac06fad0acd19a5a489..1bae7e114cf20828e4986ae91cab8240cd6b942c 100644 (file)
@@ -70,9 +70,9 @@ package System.Tasking is
    --         Unlock (Y);
 
    --  Locks with lower (smaller) level number cannot be locked
-   --  while holding a lock with a higher level number. (The level
+   --  while holding a lock with a higher level number.
 
-   --  1. System.Tasking.PO_Simple.Protection.L (any PO lock)
+   --  1. System.Tasking.Protected_Objects.Protection.L (any PO lock)
    --  2. System.Tasking.Initialization.Global_Task_Lock (in body)
    --  3. System.Task_Primitives.Operations.Single_RTS_Lock
    --  4. System.Tasking.Ada_Task_Control_Block.LL.L (any TCB lock)
index d1e6b8533d26d88eca7f28fbaff72137b0701feb..a7091184223dd0edf58d1afca9744c4ad0476967 100644 (file)
@@ -79,8 +79,8 @@ package System.Tasking.Protected_Objects.Entries is
    --  The following type contains the GNARL state of a protected object.
    --  The application-defined portion of the state (i.e. private objects)
    --  is maintained by the compiler-generated code. Note that there is a
-   --  simplified version of this type declared in System.Tasking.PO_Simple
-   --  that handle the simple case (no entries).
+   --  simplified version declared in System.Tasking.Protected_Objects that
+   --  handles the simple case (no entries) and is not controlled.
 
    type Protection_Entries (Num_Entries : Protected_Entry_Index) is new
      Ada.Finalization.Limited_Controlled