aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 20:05:08 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 13:56:48 +0100
commit0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6 (patch)
tree1a891e5c28f899d5490a7068b36d17f0515e023a /sysdeps/htl
parent95669bbf2c20518cbbcd31681e2dc954c5233b79 (diff)
downloadglibc-0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6.zip
glibc-0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6.tar.gz
glibc-0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6.tar.bz2
htl: Add support for C11 threads behavior
Essentially properly calling the thread function which returns an int instead of a void*. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/htl')
-rw-r--r--sysdeps/htl/pthreadP.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h
index b1c7575..fc8c9bc 100644
--- a/sysdeps/htl/pthreadP.h
+++ b/sysdeps/htl/pthreadP.h
@@ -21,6 +21,9 @@
#include <pthread.h>
+/* Attribute to indicate thread creation was issued from C11 thrd_create. */
+#define ATTR_C11_THREAD ((void*)(uintptr_t)-1)
+
/* These represent the interface used by glibc itself. */
extern pthread_t __pthread_self (void);