-- -- Uwe R. Zimmer, Australia, September 2011 -- package body Id_Generator_Concurrent is
protected body Generator is
procedure Read_Id (Id : out Id_Range) is
begin if Last_Id_Gone then
raise Out_Of_Ids;
else Id := Current_Id;
if Current_Id < Id_Range'Last then
Current_Id := Current_Id + 1;
else Last_Id_Gone := True; end if;
end if;
end Read_Id;
end Generator;
end Id_Generator_Concurrent;