I am writing a multithreaded application. In one section, a thread will be deleted. I want to give the Thread time for cleaning up everything, but there might be a point, where the thread waits for userdata and blocks. I want to join the thread, if thats not possible within X seconds, it shall be deleted. How can I achieve this with C++11 without using boost? I know boost hast try_join_for, but std::thread seems not to have this function.
Aucun commentaire:
Enregistrer un commentaire