> Does anyone see a way to get any detached_thread to safely shut down > without calling quick_exit()? I think that, under POSIX, the only way to make sure that a thread has finished calling the TLS destructors and is done with its stack (this is important if the stack is managed by the application) is to call pthread_join.