From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada.Real_Time behavior with GNAT
Date: Sat, 29 Mar 2008 19:25:05 +0100
Date: 2008-03-29T19:25:08+01:00 [thread overview]
Message-ID: <o9trq4mbol2q$.fsyyfjwx5uhi$.dlg@40tude.net> (raw)
In-Reply-To: f64ef241-4d24-4632-a6b9-13b7052d04e2@e23g2000prf.googlegroups.com
On Sat, 29 Mar 2008 06:51:58 -0700 (PDT), kongra wrote:
> I have a question related to the Ada.Real_Time package.
[...]
> Sleep_T : constant Duration := Duration (0.0001);
You do don't need type conversion here:
Sleep_T : constant Duration := 0.0001; -- This is OK
[...]
> Can it be explained or is there something I don't know about timing in
> Ada ?
I remotely remember a discussion about this compiler bug It was discussed
in comp.lang.ada some time ago. I also remember that some people mentioned
tasking problems also circumvented by an initial delay. Which BTW can be
just 0.0;
My explanation is that GNAT RTL is improperly elaborated under Windows.
Fortunately, a delay at the program beginning wakes it up.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2008-03-29 18:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-29 13:51 Ada.Real_Time behavior with GNAT kongra
2008-03-29 16:50 ` george.priv
2008-03-29 17:29 ` Georg Bauhaus
2008-03-29 19:06 ` george.priv
2008-03-29 19:15 ` Konrad Grzanek
2008-03-29 18:11 ` Simon Wright
2008-03-29 18:25 ` Dmitry A. Kazakov [this message]
2008-03-29 19:46 ` Konrad Grzanek
2008-03-29 21:21 ` george.priv
2008-03-29 21:49 ` Konrad Grzanek
2008-03-30 0:14 ` Georg Bauhaus
2008-03-30 17:12 ` Semantics of statement reordering relevant to Ada.Real_Time Eric Hughes
2008-03-30 18:59 ` Robert A Duff
2008-03-30 21:12 ` Eric Hughes
2008-03-30 21:28 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox