Files
PolyORB/Examples/DSMStorage/vector.ads
Laurent Pautet 0e0c90ced5 Use a protected object as a workaround to the problem reported in
B930-014

Subversion-branch: /importfromcvs/trunk
Subversion-revision: 47846
2002-10-15 21:36:19 +00:00

18 lines
440 B
Ada

package Vector is
pragma Shared_Passive;
N_Partitions : constant := 4;
Block_Size : constant := 5;
Length : constant := N_Partitions * Block_Size;
type Content_Type is array (0 .. Length - 1) of Natural;
protected Content is
procedure Increment (N : Natural; I : Natural);
function Value (N : Natural) return Natural;
private
X : Content_Type := (others => 0);
end Content;
end Vector;