1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
5 -- S Y S T E M . T A S K _ I N F O --
9 -- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
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- --
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- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 -- This package body contains the routines associated with the implementation
33 -- of the Task_Info pragma.
35 -- This is the Solaris (native) version of this module
37 package body System
.Task_Info
is
39 -----------------------------
40 -- Bound_Thread_Attributes --
41 -----------------------------
43 function Bound_Thread_Attributes
return Thread_Attributes
is
46 end Bound_Thread_Attributes
;
48 function Bound_Thread_Attributes
(CPU
: CPU_Number
)
49 return Thread_Attributes
is
51 return (True, True, CPU
);
52 end Bound_Thread_Attributes
;
54 ---------------------------------
55 -- New_Bound_Thread_Attributes --
56 ---------------------------------
58 function New_Bound_Thread_Attributes
return Task_Info_Type
is
60 return new Thread_Attributes
'(False, True);
61 end New_Bound_Thread_Attributes;
63 function New_Bound_Thread_Attributes (CPU : CPU_Number)
64 return Task_Info_Type is
66 return new Thread_Attributes'(True, True, CPU
);
67 end New_Bound_Thread_Attributes
;
69 -----------------------------------
70 -- New_Unbound_Thread_Attributes --
71 -----------------------------------
73 function New_Unbound_Thread_Attributes
return Task_Info_Type
is
75 return new Thread_Attributes
'(False, False);
76 end New_Unbound_Thread_Attributes;
78 -------------------------------
79 -- Unbound_Thread_Attributes --
80 -------------------------------
82 function Unbound_Thread_Attributes return Thread_Attributes is
84 return (False, False);
85 end Unbound_Thread_Attributes;