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

7 lines
110 B
Ada

protected type Mutex is
entry Seize;
procedure Release;
private
Owned : Boolean := False;
end Mutex;