Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > delay until pro...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 5644 of 5696
Post > Topic >>

delay until problem in Windows

by george.priv@[EMAIL PROTECTED] Apr 5, 2008 at 03:51 PM

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.




 9 Posts in Topic:
delay until problem in Windows
george.priv@[EMAIL PROTEC  2008-04-05 15:51:24 
Re: delay until problem in Windows
Jacob Sparre Andersen <  2008-04-06 23:04:13 
Re: delay until problem in Windows
george.priv@[EMAIL PROTEC  2008-04-06 20:10:38 
Re: delay until problem in Windows
"Dmitry A. Kazakov&q  2008-04-07 09:25:54 
Re: delay until problem in Windows
george.priv@[EMAIL PROTEC  2008-04-06 20:32:34 
Re: delay until problem in Windows
george.priv@[EMAIL PROTEC  2008-04-07 07:43:43 
Re: delay until problem in Windows
george.priv@[EMAIL PROTEC  2008-04-07 07:51:30 
Re: delay until problem in Windows
"Alex R. Mosteo"  2008-04-08 13:02:42 
Re: delay until problem in Windows
george.priv@[EMAIL PROTEC  2008-04-09 07:56:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 4:12:30 CDT 2008.