[cpp-threads] Asynchronous Execution Issues

Peter Dimov pdimov at mmltd.net
Mon Apr 27 17:32:37 BST 2009


> 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. 




More information about the cpp-threads mailing list