Mercurial > hg > CbC > CbC_gcc
diff gcc/ada/libgnarl/g-thread.ads @ 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.ads Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/ada/libgnarl/g-thread.ads Thu Oct 25 07:37:49 2018 +0900 @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- 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- -- @@ -146,4 +146,15 @@ -- Given a low level Id, as returned by Create_Thread, return a Task_Id, -- so that operations in Ada.Task_Identification can be used. + function Make_Independent return Boolean; + -- If a procedure loads a shared library containing tasks, and that + -- procedure is considered to be a master by the compiler (because it + -- contains tasks or class-wide objects that might contain tasks), + -- then the tasks in the shared library need to call Make_Independent + -- because otherwise they will depend on the procedure that loaded the + -- shared library. + -- + -- See System.Tasking.Utilities.Make_Independent in s-tasuti.ads for + -- further documentation. + end GNAT.Threads;