|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Bal, seg_056211
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Message; 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; end Tbal; end Bal;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=2b rec1=00 rec2=01 rec3=032 [0x01] rec0=19 rec1=00 rec2=02 rec3=000 tail 0x21761ab3c87c350905308 0x42a00088462060003