aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nacl/pthread-pids.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-05-28 15:37:31 -0700
committerRoland McGrath <roland@hack.frob.com>2015-05-28 15:37:31 -0700
commit3ed015122f159b4fade8e4feecb53fe1f84fa95f (patch)
tree328027f6ca9b89c9afcd76443863063182b68ea9 /sysdeps/nacl/pthread-pids.h
parentf21754707cf42f18523aafdaad88b8ef3c317e37 (diff)
downloadglibc-3ed015122f159b4fade8e4feecb53fe1f84fa95f.zip
glibc-3ed015122f159b4fade8e4feecb53fe1f84fa95f.tar.gz
glibc-3ed015122f159b4fade8e4feecb53fe1f84fa95f.tar.bz2
NaCl: Make thread exit wake pthread_join.
Diffstat (limited to 'sysdeps/nacl/pthread-pids.h')
-rw-r--r--sysdeps/nacl/pthread-pids.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/nacl/pthread-pids.h b/sysdeps/nacl/pthread-pids.h
index ccb99d6..1589e5b 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;
}