diff options
author | NIIBE Yutaka <[email protected]> | 2024-07-05 02:36:26 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2024-07-05 02:36:26 +0000 |
commit | 9c276e762a25262cd635e97f5aad4b09fa41b427 (patch) | |
tree | 02f0728c45fd447e8ad6e23c913996920f5473f4 /src/w32-util.c | |
parent | Use gpgrt_b64dec in libgpg-error. (diff) | |
download | gpgme-9c276e762a25262cd635e97f5aad4b09fa41b427.tar.gz gpgme-9c276e762a25262cd635e97f5aad4b09fa41b427.zip |
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 <[email protected]>
Diffstat (limited to 'src/w32-util.c')
-rw-r--r-- | src/w32-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <shlobj.h> #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) { |