Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
11
Task/Singleton/Ada/singleton-3.adb
Normal file
11
Task/Singleton/Ada/singleton-3.adb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package Protected_Singleton is
|
||||
procedure Set_Data (Value : Integer);
|
||||
function Get_Data return Integer;
|
||||
private
|
||||
protected Instance is
|
||||
procedure Set(Value : Integer);
|
||||
function Get return Integer;
|
||||
private
|
||||
Data : Integer := 0;
|
||||
end Instance_Type;
|
||||
end Protected_Singleton;
|
||||
Loading…
Add table
Add a link
Reference in a new issue