Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/libgnarl/g-thread.ads @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
4 -- -- | 4 -- -- |
5 -- G N A T . T H R E A D S -- | 5 -- G N A T . T H R E A D S -- |
6 -- -- | 6 -- -- |
7 -- S p e c -- | 7 -- S p e c -- |
8 -- -- | 8 -- -- |
9 -- Copyright (C) 1998-2018, AdaCore -- | 9 -- Copyright (C) 1998-2019, AdaCore -- |
10 -- -- | 10 -- -- |
11 -- GNAT is free software; you can redistribute it and/or modify it under -- | 11 -- GNAT is free software; you can redistribute it and/or modify it under -- |
12 -- terms of the GNU General Public License as published by the Free Soft- -- | 12 -- terms of the GNU General Public License as published by the Free Soft- -- |
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- | 13 -- ware Foundation; either version 3, or (at your option) any later ver- -- |
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- | 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- |
127 -- | 127 -- |
128 -- extern void __gnat_destroy_thread (void *id); | 128 -- extern void __gnat_destroy_thread (void *id); |
129 | 129 |
130 procedure Get_Thread (Id : System.Address; Thread : System.Address); | 130 procedure Get_Thread (Id : System.Address; Thread : System.Address); |
131 pragma Export (C, Get_Thread, "__gnat_get_thread"); | 131 pragma Export (C, Get_Thread, "__gnat_get_thread"); |
132 procedure Get_Thread | |
133 (Id : Ada.Task_Identification.Task_Id; Thread : System.Address); | |
132 -- This procedure is used to retrieve the thread id of a given task. | 134 -- This procedure is used to retrieve the thread id of a given task. |
133 -- The value Id is the value that was passed to the thread code procedure | 135 -- The value Id is the value that was passed to the thread code procedure |
134 -- at activation time. | 136 -- at activation time or a Task_Id. |
135 -- Thread is a pointer to a thread id that will be updated by this | 137 -- Thread is a pointer to a thread id that will be updated by this |
136 -- procedure. | 138 -- procedure. |
137 -- | 139 -- |
138 -- C declaration: | 140 -- C declaration: |
139 -- | 141 -- |