octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46845] usleep sleeps much too long on Mac OSX


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #46845] usleep sleeps much too long on Mac OSX
Date: Fri, 08 Jan 2016 11:32:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36

Update of bug #46845 (project octave):

                  Status:                    None => Works For Me           
             Assigned to:                    None => siko1056               

    _______________________________________________________

Follow-up Comment #2:

The accuracy of usleep is very system depended, and on most systems you cannot
sleep reliably for less 1e-3 seconds. Recently, sleep and usleep were
deprecated in the development release in favor of the MATLAB compatible
pause-function, which internally does nothing despite calling the POSIX
compliant nanosleep:

http://hg.savannah.gnu.org/hgweb/octave/rev/58263bea2fdf

Thus replace usleep(100) by pause(1e-4).

If there is nothing more about this issue, I can close it.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46845>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]