Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
package Server is
|
||||
pragma Remote_Call_Interface;
|
||||
procedure Foo;
|
||||
function Bar return Natural;
|
||||
end Server;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
package body Server is
|
||||
Count : Natural := 0;
|
||||
|
||||
procedure Foo is
|
||||
begin
|
||||
Count := Count + 1;
|
||||
end Foo;
|
||||
|
||||
function Bar return Natural is
|
||||
begin
|
||||
return Count;
|
||||
end Bar;
|
||||
end Server;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
with Server;
|
||||
with Ada.Text_IO;
|
||||
|
||||
procedure Client is
|
||||
begin
|
||||
Ada.Text_IO.Put_Line ("Calling Foo...");
|
||||
Server.Foo;
|
||||
Ada.Text_IO.Put_Line ("Calling Bar: " & Integer'Image (Server.Bar));
|
||||
end Client;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
configuration DSA is
|
||||
pragma Starter (None);
|
||||
|
||||
-- Server
|
||||
Server_Partition : Partition := (Server);
|
||||
procedure Run_Server is in Server_Partition;
|
||||
|
||||
-- Client
|
||||
Client_Partition : Partition;
|
||||
for Client_Partition'Termination use Local_Termination;
|
||||
procedure Client;
|
||||
for Client_Partition'Main use Client;
|
||||
end DSA;
|
||||
Loading…
Add table
Add a link
Reference in a new issue