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

⟦a6ff34f10⟧ TextFile

    Length: 773 (0x305)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

package body Tic is
    Ticrate : Duration := 0.1;
    Kill : Boolean := False;

    task Tictac is
        entry Start;
        entry Wait;
    end Tictac;

    task body Tictac is
    begin
        loop
            select
                when not Kill =>
                    accept Start;
                    delay (Ticrate);
                    accept Wait;
            or
                terminate;
            end select;
        end loop;
    end Tictac;

    procedure Starttic is
    begin
        Tictac.Start;
    end Starttic;

    procedure Setticrate (Therate : Duration := 0.1) is
    begin
        Ticrate := Therate;
    end Setticrate;

    procedure Waitfortic is    -- bloquant pour l'appelant
    begin
        Tictac.Wait;
    end Waitfortic;

end Tic;