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

⟦68f6aed10⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Bal, seg_057489

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



with Message;
with Task_Io;
with Queue_Generic;
package body Bal is

    task Tbal is
        entry Get (Mess : out Message.Object);
        entry Put (Mess : in Message.Object);
        entry Is_Empty (Empty : out Boolean);
        entry Dispose;
    end Tbal;

    procedure Get (Mess : out Message.Object) is
    begin
        Tbal.Get (Mess);
    end Get;

    procedure Put (Mess : in Message.Object) is
    begin
        Tbal.Put (Mess);
    end Put;

    function Is_Empty return Boolean is  
        Answer : Boolean;
    begin
        Tbal.Is_Empty (Answer);
        return Answer;
    end Is_Empty;

    procedure Dispose is
    begin
        Tbal.Dispose;
    end Dispose;

    task body Tbal is
        package Mess_Queue is new Queue_Generic (Message.Object);
        Fifo : Mess_Queue.Queue;
        Endbal : Boolean := False;
    begin
        Mess_Queue.Initialize (Fifo);
        loop
            select
                accept Put (Mess : in Message.Object) do
                    Mess_Queue.Add (Fifo, Mess);
                end Put;

            or
                accept Is_Empty (Empty : out Boolean) do
                    Empty := Mess_Queue.Is_Empty (Fifo);
                end Is_Empty;
            or
                when not Mess_Queue.Is_Empty (Fifo) =>
                    accept Get (Mess : out Message.Object) do
                        Mess := Mess_Queue.First (Fifo);
                        Mess_Queue.Delete (Fifo);
                    end Get;
            or
                accept Dispose do
                    Endbal := True;
                end Dispose;
            end select;
            exit when Endbal;

        end loop;
        Task_Io.Put_Line ("fin de la tache BAL");
    end Tbal;
end Bal;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=2c rec1=00 rec2=01 rec3=012
        [0x01] rec0=19 rec1=00 rec2=02 rec3=000
    tail 0x2176452c087c77f142113 0x42a00088462060003