|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 773 (0x305)
Types: TextFile
Names: »B«
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
└─⟦129cab021⟧ »DATA«
└─⟦this⟧
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;