diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-05-28 15:37:31 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-05-28 15:37:31 -0700 |
commit | 3ed015122f159b4fade8e4feecb53fe1f84fa95f (patch) | |
tree | 328027f6ca9b89c9afcd76443863063182b68ea9 /sysdeps/nacl/pthread-pids.h | |
parent | f21754707cf42f18523aafdaad88b8ef3c317e37 (diff) | |
download | glibc-3ed015122f159b4fade8e4feecb53fe1f84fa95f.tar.gz glibc-3ed015122f159b4fade8e4feecb53fe1f84fa95f.tar.xz glibc-3ed015122f159b4fade8e4feecb53fe1f84fa95f.zip |
NaCl: Make thread exit wake pthread_join.
Diffstat (limited to 'sysdeps/nacl/pthread-pids.h')
-rw-r--r-- | sysdeps/nacl/pthread-pids.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/nacl/pthread-pids.h b/sysdeps/nacl/pthread-pids.h index ccb99d6b0c..1589e5b342 100644 --- a/sysdeps/nacl/pthread-pids.h +++ b/sysdeps/nacl/pthread-pids.h @@ -50,6 +50,9 @@ __nacl_get_tid (struct pthread *pd) assert ((id & 1) == 0); assert (sizeof id == sizeof tid); assert (tid > 0); + /* This ensures that NACL_EXITING_TID (lowlevellock.h) can never + be a valid TID value. */ + assert ((tid & 1) == 0); return tid; } |