]>
Commit | Line | Data |
---|---|---|
84481f76 RK |
1 | ------------------------------------------------------------------------------ |
2 | -- -- | |
3 | -- GNAT COMPILER COMPONENTS -- | |
4 | -- -- | |
5 | -- S Y S T E M . P R O G R A M _ I N F O -- | |
6 | -- -- | |
7 | -- S p e c -- | |
8 | -- -- | |
748086b7 | 9 | -- Copyright (C) 1997-2009, Free Software Foundation, Inc. -- |
84481f76 RK |
10 | -- -- |
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- -- | |
748086b7 | 13 | -- ware Foundation; either version 3, or (at your option) any later ver- -- |
84481f76 RK |
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 -- | |
748086b7 JJ |
16 | -- or FITNESS FOR A PARTICULAR PURPOSE. -- |
17 | -- -- | |
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. -- | |
21 | -- -- | |
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/>. -- | |
84481f76 RK |
26 | -- -- |
27 | -- GNAT was originally developed by the GNAT team at New York University. -- | |
71ff80dc | 28 | -- Extensive contributions were provided by Ada Core Technologies Inc. -- |
84481f76 RK |
29 | -- -- |
30 | ------------------------------------------------------------------------------ | |
fbf5a39b | 31 | |
b11e8d6f RD |
32 | -- This package contains the definitions and routines used as parameters to |
33 | -- the run-time system at program startup for the SGI implementation. | |
84481f76 RK |
34 | |
35 | package System.Program_Info is | |
3b91d88e | 36 | pragma Preelaborate; |
84481f76 RK |
37 | |
38 | function Initial_Sproc_Count return Integer; | |
b11e8d6f | 39 | -- The number of sproc created at program startup for scheduling threads |
84481f76 | 40 | |
3b91d88e | 41 | function Max_Sproc_Count return Integer; |
b11e8d6f RD |
42 | -- The maximum number of sprocs that can be created by the program for |
43 | -- servicing threads. This limit includes both the pre-created sprocs and | |
44 | -- those explicitly created under program control. | |
84481f76 | 45 | |
3b91d88e | 46 | function Sproc_Stack_Size return Integer; |
c5d31169 | 47 | -- The size, in bytes, of the sproc's initial stack |
84481f76 RK |
48 | |
49 | function Default_Time_Slice return Duration; | |
84481f76 RK |
50 | -- The default time quanta for round-robin scheduling of threads of |
51 | -- equal priority. This default value can be overridden on a per-task | |
52 | -- basis by specifying an alternate value via the implementation-defined | |
53 | -- Task_Info pragma. See s-tasinf.ads for more information. | |
84481f76 | 54 | |
3b91d88e | 55 | function Default_Task_Stack return Integer; |
b11e8d6f | 56 | -- The default stack size for each created thread. This default value can |
276e95ca | 57 | -- be overridden on a per-task basis by the language-defined Storage_Size |
b11e8d6f | 58 | -- pragma. |
84481f76 | 59 | |
3b91d88e | 60 | function Stack_Guard_Pages return Integer; |
84481f76 RK |
61 | -- The number of non-writable, guard pages to append to the bottom of |
62 | -- each thread's stack. | |
84481f76 RK |
63 | |
64 | function Pthread_Sched_Signal return Integer; | |
84481f76 RK |
65 | -- The signal used by the Pthreads library to affect scheduling actions |
66 | -- in remote sprocs. | |
84481f76 | 67 | |
3b91d88e | 68 | function Pthread_Arena_Size return Integer; |
84481f76 RK |
69 | -- The size of the shared arena from which pthread locks are allocated. |
70 | -- See the usinit(3p) man page for more information on shared arenas. | |
84481f76 RK |
71 | |
72 | function Os_Default_Priority return Integer; | |
84481f76 RK |
73 | -- The default Irix Non-Degrading priority for each sproc created to |
74 | -- service threads. | |
84481f76 RK |
75 | |
76 | end System.Program_Info; |