diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-05-20 14:52:05 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-05-20 14:52:05 -0700 |
commit | 7cea6212785552b73f22af110a71aa77e2333b82 (patch) | |
tree | 445b5634c218d5b563c2e16cef50a2d51772ca9d /sysdeps/nacl/createthread.c | |
parent | 5e2aa9a421cd429e9ef7d169eda7c18a119e9b8c (diff) | |
download | glibc-7cea6212785552b73f22af110a71aa77e2333b82.tar glibc-7cea6212785552b73f22af110a71aa77e2333b82.tar.gz glibc-7cea6212785552b73f22af110a71aa77e2333b82.tar.bz2 glibc-7cea6212785552b73f22af110a71aa77e2333b82.zip |
NaCl: Set tid field to a unique value.
Diffstat (limited to 'sysdeps/nacl/createthread.c')
-rw-r--r-- | sysdeps/nacl/createthread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/nacl/createthread.c b/sysdeps/nacl/createthread.c index 9df4eaee74..9d9284a7b5 100644 --- a/sysdeps/nacl/createthread.c +++ b/sysdeps/nacl/createthread.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <nacl-interfaces.h> +#include <pthread-pids.h> /* See the comments in pthread_create.c for the requirements for these two macros and the create_thread function. */ @@ -33,6 +34,8 @@ static int create_thread (struct pthread *pd, const struct pthread_attr *attr, bool stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) { + pd->tid = __nacl_get_tid (pd); + pd->stopped_start = stopped_start; if (__glibc_unlikely (stopped_start)) /* We make sure the thread does not run far by forcing it to get a |