From: Rich Felker Date: Fri, 26 Apr 2013 20:05:39 +0000 (-0400) Subject: use atomic decrement rather than cas in pthread_exit thread count X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=c3a6839ce95c0f93bd73f7fbe5fcaee4054e5b62;hp=c3a6839ce95c0f93bd73f7fbe5fcaee4054e5b62;ds=sidebyside 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. ---