]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
sys: [Linux] remove/replace obsolete timing and sleep syscalls, slightly improve...
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 9 Apr 2024 16:27:45 +0000 (02:27 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 11 Apr 2024 12:11:59 +0000 (22:11 +1000)
commita3dac3bcfd962ee3b7ebcdb7afb777560679c29a
tree927219a7df36142b78dea263142601a0d0f03768
parente1fab4be28a3b650cdfb150a9f8192ac9a8e6da9
sys: [Linux] remove/replace obsolete timing and sleep syscalls, slightly improve timing

Uses CLOCK_MONOTONIC_RAW on Linux, this is unaffected by synchronisation
adjustments and is used by SDL_GetPerformanceCounter() (we'll use it
directly to support dedicated servers without SDL).

Removes gettimeofday() and usleep() which were marked obsolete and
removed in POSIX.1-2008 so the old comment // FIXME improve this check
was impossible to address. The gettimeofday() replacement is very well
tested now (sys_useclockgettime 1 is default even in div0-stable).

Removes host_maxwait as the problems it worked around were fixed.

Tidies up a little.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
host.c
libcurl.c
libcurl.h
sys_shared.c