about summary refs log tree commit diff
path: root/htl/pt-internal.h
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 /htl/pt-internal.h
parent95669bbf2c20518cbbcd31681e2dc954c5233b79 (diff)
downloadglibc-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 'htl/pt-internal.h')
-rw-r--r--htl/pt-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 274223cfe1..9147b87740 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -100,6 +100,9 @@ struct __pthread
   /* Resolver state.  */
   struct __res_state res_state;
 
+  /* Indicates whether is a C11 thread created by thrd_creat.  */
+  bool c11;
+
   /* Thread context.  */
   struct pthread_mcontext mcontext;