virtualx-engine/drivers/unix
Lorenz Junglas 1107c7f327 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.
2020-10-12 16:27:31 +02:00
..
dir_access_unix.cpp Hides special folders in FileDialog for macOS 2020-09-28 14:36:21 +08:00
dir_access_unix.h Hides special folders in FileDialog for macOS 2020-09-28 14:36:21 +08:00
file_access_unix.cpp [Complex Test Layouts] Change String to use UTF-32 encoding on all platforms. 2020-09-03 19:56:24 +03:00
file_access_unix.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
ip_unix.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
ip_unix.h Add override keywords. 2020-07-10 13:56:54 +01:00
net_socket_posix.cpp Remove 32-bit String to_int method 2020-06-03 00:03:34 -04:00
net_socket_posix.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
os_unix.cpp Fix nanosleep usage 2020-10-12 16:27:31 +02:00
os_unix.h Remove OS.get_system_time_secs/get_system_time_msecs and change OS.get_unix_time return type to double 2020-05-31 14:19:31 +02:00
rw_lock_posix.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rw_lock_posix.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
syslog_logger.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
syslog_logger.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
thread_posix.cpp Linux/BSD: Fix support for NetBSD 2020-09-18 10:27:55 +02:00
thread_posix.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00