mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #92208 from Calinou/linuxbsd-use-nanosleep
Use `OS::delay_usec()` to avoid using deprecated `usleep()` on Linux
This commit is contained in:
commit
1dab521f2d
3 changed files with 6 additions and 6 deletions
|
@ -591,7 +591,7 @@ void FreeDesktopPortalDesktop::_thread_monitor(void *p_ud) {
|
|||
dbus_connection_read_write(portal->monitor_connection, 0);
|
||||
}
|
||||
|
||||
usleep(50000);
|
||||
OS::get_singleton()->delay_usec(50'000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue