comp.lang.ada
 help / color / mirror / Atom feed
* delay until problem in Windows
@ 2008-04-05 22:51 george.priv
  2008-04-06 21:04 ` Jacob Sparre Andersen
  2008-04-07  3:10 ` george.priv
  0 siblings, 2 replies; 9+ messages in thread
From: george.priv @ 2008-04-05 22:51 UTC (permalink / raw)


Simplified code:

task body Some_task is

    Time_For_Next_Frame : time;

    procedure Fetch_Frame is
      -- Here is where Time_For_Next_Frame is calculated
    begin
         Send_Frame;
         Time_For_Next_Frame := Clock + Desired_Delta_T;
    end Fetch_Frame;

begin

   loop

      select
          ...
      or
         delay until Time_For_Next_Frame;

         Fetch_Frame;

   end loop;

end Some_Task;

Symptoms:

After over 24+ hour operations it seems that delay gives no delay no
matter what value there is on Windows system .  On Linux all is fine.

If I replace delay statement with

delay Desired_Delta_T;

all seemed fine.  Does anyone knows of that limitation?

George.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-04-09 14:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-05 22:51 delay until problem in Windows george.priv
2008-04-06 21:04 ` Jacob Sparre Andersen
2008-04-07  3:32   ` george.priv
2008-04-07  3:10 ` george.priv
2008-04-07  7:25   ` Dmitry A. Kazakov
2008-04-07 14:43     ` george.priv
2008-04-07 14:51       ` george.priv
2008-04-08 11:02         ` Alex R. Mosteo
2008-04-09 14:56     ` george.priv

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