How do you make a thread wait in C++?

To wait for a thread use the std::thread::join() function . This function makes the current thread wait until the thread identified by *this has finished executing.

Sizin İçin Seçtik  What is Future value in Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *