RosettaCodeData/Task/Mutex/Ada/mutex-2.ada

11 lines
183 B
Ada
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
protected body Mutex is
entry Seize when not Owned is
begin
Owned := True;
end Seize;
procedure Release is
begin
Owned := False;
end Release;
end Mutex;