mercredi 27 janvier 2016

how to kill uncompleted/ Progressed thread in C++?

I created a thread from main and detach it from main thread. Now i want to kill this thread when it is in progress state. I tried std::terminate(). But it kill whole process . This thing i didn't want. I want to kill that progress thread and start another thread in C++.

Please help me to solve this for std::thread.

Aucun commentaire:

Enregistrer un commentaire