blob: f0c6f8ffdcd92bfbf2af9f20f8bda98b9059c42d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
with Ada.Command_Line; use Ada.Command_Line;
with System.Multiprocessors; use System.Multiprocessors;
package Constant4_Pkg is
Max_CPUs : constant CPU := (if Argument_Count < 2 then Number_Of_CPUs
else CPU'Value (Argument (2)));
subtype Worker_Id is CPU range 1 .. Max_CPUs;
type Counter is range 0 .. 10**18;
Steals : array (Worker_Id) of Counter := (others => 0);
end Constant4_Pkg;
|