diff gcc/ada/libgnarl/g-thread.adb @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
line wrap: on
line diff
--- a/gcc/ada/libgnarl/g-thread.adb	Fri Oct 27 22:46:09 2017 +0900
+++ b/gcc/ada/libgnarl/g-thread.adb	Thu Oct 25 07:37:49 2018 +0900
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                    Copyright (C) 1998-2017, AdaCore                      --
+--                    Copyright (C) 1998-2018, AdaCore                      --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -33,6 +33,7 @@
 with System.Task_Primitives.Operations;
 with System.Tasking;
 with System.Tasking.Stages;   use System.Tasking.Stages;
+with System.Tasking.Utilities;
 with System.OS_Interface;     use System.OS_Interface;
 with System.Soft_Links;       use System.Soft_Links;
 with Ada.Unchecked_Conversion;
@@ -172,6 +173,15 @@
       Thr.all := Task_Primitives.Operations.Get_Thread_Id (To_Id (Id));
    end Get_Thread;
 
+   ----------------------
+   -- Make_Independent --
+   ----------------------
+
+   function Make_Independent return Boolean is
+   begin
+      return System.Tasking.Utilities.Make_Independent;
+   end Make_Independent;
+
    ----------------
    -- To_Task_Id --
    ----------------