20#ifndef WG14_SIGNALS_GET_TID_H
21#define WG14_SIGNALS_GET_TID_H
36 WG14_SIGNALS_PREFIX(thread_id_t_tombstone) = 0;
38#if WG14_SIGNALS_HAVE_ASYNC_SAFE_THREAD_LOCAL
44 WG14_SIGNALS_ASYNC_SAFE_THREAD_LOCAL WG14_SIGNALS_PREFIX(
thread_id_t)
45 WG14_SIGNALS_PREFIX(current_thread_id_cached);
53 WG14_SIGNALS_PREFIX(current_thread_id)(
void)
55#if WG14_SIGNALS_HAVE_ASYNC_SAFE_THREAD_LOCAL
56 if(WG14_SIGNALS_PREFIX(current_thread_id_cached) ==
57 WG14_SIGNALS_PREFIX(thread_id_t_tombstone))
59 WG14_SIGNALS_PREFIX(current_thread_id_cached) =
62 return WG14_SIGNALS_PREFIX(current_thread_id_cached);
#define WG14_SIGNALS_INLINE
#define WG14_SIGNALS_EXTERN
uintptr_t thread_id_t
The type of a thread id.
thread_id_t internal_current_thread_id_cached_set(void)