diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-13 20:05:08 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-02-09 13:56:48 +0100 |
commit | 0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6 (patch) | |
tree | 1a891e5c28f899d5490a7068b36d17f0515e023a /sysdeps | |
parent | 95669bbf2c20518cbbcd31681e2dc954c5233b79 (diff) | |
download | glibc-0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6.tar.gz glibc-0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6.tar.xz glibc-0c0361235ca7d4f5be0f88fe9b03afcf6a3cb8c6.zip |
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')
-rw-r--r-- | sysdeps/htl/pthreadP.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h index b1c7575f89..fc8c9bc591 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); |