Skip to content
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

Use OS::delay_usec() to avoid using deprecated usleep() on Linux #92208

Merged
merged 1 commit into from
May 30, 2024

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 21, 2024

usleep(3) was declared obsolete in POSIX.1-2001 and removed in POSIX.1-2008. nanosleep(2) was recommended to be used instead.

OS::delay_usec() internally uses nanosleep().

This also uses large number separators for improved readability.

usleep(3) was declared obsolete in POSIX.1-2001 and removed in POSIX.1-2008.
nanosleep(2) was recommended to be used instead.

`OS::delay_usec()` internally uses `nanosleep()`.

This also uses large number separators for improved readability.
@Calinou Calinou added this to the 4.x milestone May 21, 2024
@Calinou Calinou requested a review from a team as a code owner May 21, 2024 15:34
@akien-mga akien-mga modified the milestones: 4.x, 4.3 May 21, 2024
@akien-mga akien-mga merged commit 1dab521 into godotengine:master May 30, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the linuxbsd-use-nanosleep branch May 30, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants