end record;
package Auto_Lock is
- type LC is new Ada.Finalization.Controlled with private;
+ type LC is limited new Ada.Finalization.Limited_Controlled with private;
procedure Init(This: in out LC; Mutex: Problem_Mutex_All_Access; Auto_Unlock: in Boolean := True);
procedure Lock(This: in out LC);
procedure Unlock(This: in out LC);
private
- type LC is new Ada.Finalization.Controlled with
+ type LC is limited new Ada.Finalization.Limited_Controlled with
record
Auto_Unlock: Boolean;
Mutex: Problem_Mutex_All_Access;