DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦92dade105⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Task_Code_Wrapper, seg_0583c8

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



package body Task_Code_Wrapper is

    task body Operator_Task is
        Value : Operand;
    begin
        accept Startup (Start : in Operand) do
            -- only store the value in this accept statement.
            Value := Start;
        end Startup;

        -- actions here can take place in parallel with other tasks...
        Value := Operate (Value);

        -- now wait until someone wants the result.
        accept Results (Found : out Operand) do
            Found := Value; -- return the result and terminate.
        end Results;
    end Operator_Task;


    procedure Startup (Actor : in Operator; Start : in Operand) is
    begin
        Actor.Actor.Startup (Start);
    end Startup;


    procedure Results (Actor : in Operator; Found : out Operand) is
    begin
        Actor.Actor.Results (Found);
    end Results;

end Task_Code_Wrapper;


E3 Meta Data

    nblk1=1
    nid=0
    hdr6=2
        [0x00] rec0=23 rec1=00 rec2=01 rec3=000
    tail 0x217659f5487e368609307 0x42a00088462060003