]> sourceware.org Git - glibc.git/commitdiff
htl: Add C11 threads types definitions
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 13 Jan 2020 21:19:24 +0000 (21:19 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 9 Feb 2020 12:56:48 +0000 (13:56 +0100)
sysdeps/htl/bits/thread-shared-types.h

index c280f2e182b7ee9c3a805b5189c45b8f9cec19f9..819682a07b0b50a40c9f959e2aec538d273d4d51 100644 (file)
 #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  */
This page took 0.044816 seconds and 5 git commands to generate.