diff options
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; } |