diff options
author | Maria Matejka <mq@ucw.cz> | 2023-05-03 19:01:19 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-05-06 10:50:32 +0200 |
commit | 00f30ac40bda76b289b1dc5c5aa8a5d2e4941985 (patch) | |
tree | 506fe68a74e0c3d09136967346e5e2aca08358e8 /sysdep/unix/log.c | |
parent | 1e998a434909b6ad5506c4b0084b7ad1ef3da2b1 (diff) |
Debug: keep a circular log of memory page operations
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r-- | sysdep/unix/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index be7f8adf..c200db38 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -38,7 +38,7 @@ static list *current_log_list; static char *current_syslog_name; /* NULL -> syslog closed */ static _Atomic uint max_thread_id = ATOMIC_VAR_INIT(1); -static _Thread_local uint this_thread_id; +_Thread_local uint this_thread_id; #define THIS_THREAD_ID (this_thread_id ?: (this_thread_id = atomic_fetch_add_explicit(&max_thread_id, 1, memory_order_acq_rel))) |