I want to start a thread from a process and detach it and terminate the process. But the thread will be running continuously in the background. Can I achieve this with c++11 ?
I have detached my thread like this std::thread(&thread_func, param1, param2).detach();
But it gets terminated once the process is terminated.
Aucun commentaire:
Enregistrer un commentaire