use atomic decrement rather than cas in pthread_exit thread count
[musl] / arch / arm / src /
2013-02-06 rofl0rarm: add __aeabi_atexit()