-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix usleep argument #444
Fix usleep argument #444
Conversation
According to POSIX (http://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html): ````The useconds argument shall be less than one million.```` Make it so.
Hi! |
I am ambivalent about this PR. On one hand, it's clearly stated in POSIX docs that usleep argument should be less than 1 000 000. On the other hand, I have never seen system that actually enforced that. Mac OS man page does not mention that limitation, and Linux one says:
Windows does not support it at all. On the other other hand, if we are so picky about standards, according to POSIX 1.2001
So, finally, I propose, instead of calling
Or C++14:
And get rid of that whole
|
@mauser: It caused 100% CPU usage for a user, because the sleep was immediately terminated, so hydrogen was busylooping. |
* Automation Paths: Create AutomationPath class * Automation Paths: Add velocity Automation path to Song * Automation Paths: add iterators, operator== and operator<< to AutomationPath * Automation Paths: Serializer class tha loads/stores AutomationPath in XML document * Automation Paths: Use velocity automation path in hydrogen player * Automation Paths: Use velocity automation path in MIDI export * Automation Paths: Load/Save automation paths in a song file * Automation Paths: find and move points in paths * Automation Paths: Add AutomationPAthView widget * Automation Paths: Add AutomationPathView to SongEditorPanel * Automation Paths: Display Velocity automation path in main window * Automation Paths: Refine automation paths widget * Automation Path: Set 1.5 as maximum velocity adjustment * Automation Path: Correctly handle empty path * Automation Paths: Modifying AutomationPath marks song as modified * Automation Paths: Use velocity path only in song mode, not in pattern mode * Automation Paths: AutomationPath::remove_point() * Automation Paths: Add undo stack support for adding points * AutomationPaths: Deleting points * Automation Paths: Undo removing points * Automation Paths: Make point moves undoable * Automation Path: add doxygen comments * Automation Paths: Add GPL header to source files * Automation Paths: fix test * Automation Paths: Qt5 compatibility * Automation Paths: fix bug with adding points outside valid range * Automation Path: remove unused <iostream> includes * Automation Paths: tweak Automatio PAth presentation * Improved spacing for translated labels * Fix usleep argument (#444) According to POSIX (http://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html): ````The useconds argument shall be less than one million.```` Make it so. * Converted layouts to QFormLayout so widgets will resize * Have export dialog size properly * Correct behavior when cancelling window close * typos + a few fixes for the French translation (#451) * typos + a few fixes for the French translation * one more typo * Added padding along left side of dialog * Velocity automation: add LCDCombo with description * Automation Path: fix find() method not to look before first point
According to POSIX (http://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html):
The useconds argument shall be less than one million.
Make it so.