comp.lang.ada
 help / color / mirror / Atom feed
From: "Meresup" <fr_laugier@yahoo.com>
Subject: may i be more explicit?
Date: Tue, 12 Mar 2002 01:58:45 +0100
Date: 2002-03-12T00:58:47+00:00	[thread overview]
Message-ID: <a6jjs7$1sg$1@wanadoo.fr> (raw)
In-Reply-To: a6jial$6b8$1@wanadoo.fr

I can try.
Here's what i'm trying to do :

procedure Test_Timeout is

-- Timeout
function Timeout return Boolean is
begin
    delay 10.0;
    return True;
end Timeout;

-- Simulation of waiting a response from a procedure
function Ar return Boolean is
begin
    for I in 1..10 loop
        Put (I);
        delay 0.2;
    end loop;
    return True;
end Ar;

begin
Put("Test de timeout");
-- What can i do to go out this test as soon as any of these conditions are
true?
if Ar or Timeout then
    Put (" Timeout atteint");
end if;
end Test_Timeout;





  reply	other threads:[~2002-03-12  0:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-12  0:32 Timeout or agreement Meresup
2002-03-12  0:58 ` Meresup [this message]
2002-03-12  1:50   ` may i be more explicit? tmoran
2002-03-12  1:38 ` Timeout or agreement Patrick Hohmeyer
2002-03-12 17:18 ` Meresup
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox