about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 21:19:24 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 13:56:48 +0100
commit6cefe985b869e7b33b05ce7252410474d8a6c3ad (patch)
tree15b5d14eb685c0d0c448e6b8fe429caab15c3650
parentf1cea28137f471e551073cdcfc8d04775e5020f8 (diff)
downloadglibc-6cefe985b869e7b33b05ce7252410474d8a6c3ad.tar.gz
glibc-6cefe985b869e7b33b05ce7252410474d8a6c3ad.tar.xz
glibc-6cefe985b869e7b33b05ce7252410474d8a6c3ad.zip
htl: Add C11 threads types definitions
-rw-r--r--sysdeps/htl/bits/thread-shared-types.h13
1 files changed, 13 insertions, 0 deletions
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 <bits/pthreadtypes-arch.h>
+#include <bits/types/struct___pthread_once.h>
+
+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  */