xz-analysis-mirror/src
Lasse Collin 46fd991cd2 xz/Windows: Ensure that clock_gettime() isn't used with MinGW-w64.
This commit alone doesn't change anything in the real-world:

  - configure.ac currently checks for clock_gettime() only
    when using pthreads.

  - CMakeLists.txt doesn't check for clock_gettime() on Windows.

So clock_gettime() wasn't used with MinGW-w64 before either.

clock_gettime() provides monotonic time and it's better than
gettimeofday() in this sense. But clock_gettime() is defined
in winpthreads, and liblzma or xz needs nothing else from
winpthreads. By avoiding clock_gettime(), we avoid the dependency on
libwinpthread-1.dll or the need to link against the static version.

As a bonus, GetTickCount64() and MinGW-w64's gettimeofday() can be
faster than clock_gettime(CLOCK_MONOTONIC, &tv). The resolution
is more than good enough for the progress indicator in xz.
2023-10-22 18:59:45 +03:00
..
common tuklib_integer: Revise unaligned reads and writes on strict-align archs. 2023-10-18 19:02:45 +03:00
liblzma liblzma: Move is_clmul_supported() back to crc_common.h. 2023-10-21 00:01:29 +08:00
lzmainfo xz, xzdec, lzmainfo: Use tuklib_attr_noreturn. 2023-09-22 20:06:27 +03:00
scripts Scripts: Change quoting style from `...' to '...'. 2023-09-24 22:10:41 +08:00
xz xz/Windows: Ensure that clock_gettime() isn't used with MinGW-w64. 2023-10-22 18:59:45 +03:00
xzdec xz, xzdec, lzmainfo: Use tuklib_attr_noreturn. 2023-09-22 20:06:27 +03:00
Makefile.am Build: Prepare to support Automake's subdir-objects. 2014-10-29 21:15:35 +02:00