use atomic decrement rather than cas in pthread_exit thread count
authorRich Felker <dalias@aerifal.cx>
Fri, 26 Apr 2013 20:05:39 +0000 (16:05 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 26 Apr 2013 20:05:39 +0000 (16:05 -0400)
commitc3a6839ce95c0f93bd73f7fbe5fcaee4054e5b62
tree266e3a83fb5a0ffc2ed146035c58b17f7a1f280e
parent6e531f999a82cf39a951e1e9bba3cb80a6eb1464
use atomic decrement rather than cas in pthread_exit thread count

now that blocking signals prevents any application code from running
while the last thread is exiting, the cas logic is no longer needed to
prevent decrementing below zero.
src/thread/pthread_create.c