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

11 lines
183 B
Ada
Raw Permalink Normal View History

2026-04-30 12:34:36 -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;