DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦57c5a269b⟧ TextFile

    Length: 1435 (0x59b)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
with Z_Debug;

package body Z_Debug_Tache is

    --TYPES ------------------------------------------------------------------

    task type Toto is
        pragma Os_Task (0);
        entry Run (Etat : Boolean);
        entry Stop;
    end Toto;

    type Ptr_Tache is access Toto;


    -- VARIABLES ------------------------------------------------------------

    Tache_1, Tache_2 : Ptr_Tache;

    -- PROCEDURES -----------------------------------------------------------


    procedure Run (Etat : Boolean) is
    begin
        Tache_1.Run (Etat);
    end Run;

    procedure Stop is
    begin
        Tache_2.Stop;
        Text_Io.Put_Line ("a que coucou");
    end Stop;

    procedure Create is
    begin
        Tache_1 := new Toto;
        Tache_2 := new Toto;
    end Create;

    procedure Destroy is
    begin
        abort Tache_1.all;
        abort Tache_2.all;
    end Destroy;


    -- TACHE ----------------------------------------------------------------

    task body Toto is
        Status : Boolean := False;
    begin
        loop  
            select  
                accept Run (Etat : Boolean) do
                    Status := Etat;
                end Run;
            or
                accept Stop do
                    Status := False;
                end Stop;
                --else
                --  null;
            end select;
        end loop;
    end Toto;


end Z_Debug_Tache;