OSDN Git Service

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-proinf-irix-athread.ads
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 --                                                                          --
9 --          Copyright (C) 1997-2009, Free Software Foundation, Inc.         --
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- --
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.                                     --
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/>.                                          --
26 --                                                                          --
27 -- GNAT was originally developed  by the GNAT team at  New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
29 --                                                                          --
30 ------------------------------------------------------------------------------
31
32 --  This package contains the definitions and routines used as parameters to
33 --  the run-time system at program startup for the SGI implementation.
34
35 package System.Program_Info is
36    pragma Preelaborate;
37
38    function Initial_Sproc_Count return Integer;
39    --  The number of sproc created at program startup for scheduling threads
40
41    function Max_Sproc_Count return Integer;
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.
45
46    function Sproc_Stack_Size return Integer;
47    --  The size, in bytes, of the sproc's initial stack
48
49    function Default_Time_Slice  return Duration;
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.
54
55    function Default_Task_Stack return Integer;
56    --  The default stack size for each created thread. This default value can
57    --  be overridden on a per-task basis by the language-defined Storage_Size
58    --  pragma.
59
60    function Stack_Guard_Pages return Integer;
61    --  The number of non-writable, guard pages to append to the bottom of
62    --  each thread's stack.
63
64    function Pthread_Sched_Signal return Integer;
65    --  The signal used by the Pthreads library to affect scheduling actions
66    --  in remote sprocs.
67
68    function Pthread_Arena_Size return Integer;
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.
71
72    function Os_Default_Priority return Integer;
73    --  The default Irix Non-Degrading priority for each sproc created to
74    --  service threads.
75
76 end System.Program_Info;