godot/drivers
Lorenz Junglas c7f2f9fa1f
Fix nanosleep usage
nanosleep returns 0 or -1 not the error code.
The error code "EINTR" (if encountered) is placed in errno, in which case nanosleep can be safely recalled with the remaining time.

This is required, so that nanosleep continues if the calling thread is interrupted by a signal.

See manpage nanosleep(2) for additional details.

(cherry picked from commit 1107c7f327)
2021-01-13 16:17:09 +01:00
..
alsa Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
alsamidi Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
coreaudio Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
coremidi Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dummy Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gl_context SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
gles2 Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gles3 Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
gles_common Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
png Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pulseaudio Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
unix Fix nanosleep usage 2021-01-13 16:17:09 +01:00
wasapi Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
windows Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
winmidi Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
xaudio2 Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_driver_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_driver_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub Unified GLES2 / GLES3 Batching 2020-10-16 10:34:47 +01:00