run dtors before taking the exit-lock in pthread exit
authorRich Felker <dalias@aerifal.cx>
Tue, 14 Jun 2011 05:25:17 +0000 (01:25 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 14 Jun 2011 05:25:17 +0000 (01:25 -0400)
commitf58c8a0f391987a65e055ae591ec59b9df7b7f7c
tree85712f3b6a1175322d335a1e41096c2b467ec8b2
parent6232b96f5153d0b718054a8bc569fcd7d596bab2
run dtors before taking the exit-lock in pthread exit

previously a long-running dtor could cause pthread_detach to block.
src/thread/pthread_create.c