From 9c276e762a25262cd635e97f5aad4b09fa41b427 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 5 Jul 2024 11:36:26 +0900 Subject: Don't use ath_self, but get thread ID directly. * src/debug.c [HAVE_W32_SYSTEM or __linux] (tid_log_callback): Use native thread ID call for Windows and Linux, ifdef-out-ed. (debug_init): Only call gpgrt_log_set_pid_suffix_cb for relevant systems. -- Signed-off-by: NIIBE Yutaka --- src/w32-util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/w32-util.c') diff --git a/src/w32-util.c b/src/w32-util.c index c661fb4b..1b805bdc 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -60,7 +60,6 @@ #include #include "util.h" -#include "ath.h" #include "sema.h" #include "debug.h" #include "sys-util.h" @@ -858,7 +857,7 @@ my_mkstemp (char *tmpl) random_time_bits = (((uint64_t)ft.dwHighDateTime << 32) | (uint64_t)ft.dwLowDateTime); } - value += random_time_bits ^ ath_self (); + value += random_time_bits ^ ((uintptr_t)GetCurrentThreadId ()); for (count = 0; count < attempts; value += 7777, ++count) { -- cgit v1.2.3