I am new in multithreading, and trying to create a application that supports multithreading. But I want to stop and particular thread. I saw rhe terminate() function but it will stop all the threads.
std::thread at(receivedfxn, sock);
at.detach();
This is my thread which I want to stop so can anyone please tell me the solution.