vendredi 14 août 2020

Does detached thread leaks memory C++ after exit

I have an use case where I have to stop the thread from within itself. So I was thinking to detach it and once the call the stop method (which would complete the execution of the thread).

So does it leak memory after detach ? If so, how should this be handled ?

Aucun commentaire:

Enregistrer un commentaire