virtualx-engine/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
alsamidi
coreaudio
coremidi
dummy
gl_context
gles2
gles3
gles_common
png
pulseaudio
unix Fix nanosleep usage 2021-01-13 16:17:09 +01:00
wasapi
windows
winmidi
xaudio2
register_driver_types.cpp
register_driver_types.h
SCsub