From: Samuel Thibault Date: Mon, 13 Jan 2020 21:19:24 +0000 (+0000) Subject: htl: Add C11 threads types definitions X-Git-Tag: glibc-2.32~726 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=6cefe985b869e7b33b05ce7252410474d8a6c3ad;p=glibc.git htl: Add C11 threads types definitions --- diff --git a/sysdeps/htl/bits/thread-shared-types.h b/sysdeps/htl/bits/thread-shared-types.h index c280f2e182..819682a07b 100644 --- a/sysdeps/htl/bits/thread-shared-types.h +++ b/sysdeps/htl/bits/thread-shared-types.h @@ -20,5 +20,18 @@ #define _THREAD_SHARED_TYPES_H 1 #include +#include + +typedef int __tss_t; +typedef int __thrd_t; + +typedef union +{ + struct __pthread_once __data; + int __align __ONCE_ALIGNMENT; + char __size[__SIZEOF_PTHREAD_ONCE_T]; +} __once_flag; + +#define __ONCE_FLAG_INIT { { __PTHREAD_ONCE_INIT } } #endif /* _THREAD_SHARED_TYPES_H */