Debian Codegraph @

gcc/ada/libgnat/s-multip.ads

raw
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S Y S T E M . M U L T I P R O C E S S O R S --
6 -- --
7 -- S p e c --
8 -- --
9 -- This specification is derived from the Ada Reference Manual for use with --
10 -- GNAT. In accordance with the copyright of that document, you can freely --
11 -- copy and modify this specification, provided that if you redistribute a --
12 -- modified version, any changes that you have made are clearly indicated. --
13 -- --
14 ------------------------------------------------------------------------------
15
16 -- This is the top level unit for multiprocessor task support as defined by
17 -- ARM D.16. It provides the base types to enumerate CPUs and the
18 -- functionality to get the number of CPUs on the current system.
19
20 package System.Multiprocessors is
21 pragma Preelaborate (Multiprocessors);
22
23 type CPU_Range is range 0 .. 2 ** 16 - 1;
24
25 subtype CPU is CPU_Range range 1 .. CPU_Range'Last;
26
27 Not_A_Specific_CPU : constant CPU_Range := 0;
28
29 function Number_Of_CPUs return CPU;
30 -- Number of available CPUs
31
32 end System.Multiprocessors;