Tag: Detaching
C++11 Multithreading – Part 2: Joining and Detaching Threads
In this article we will discuss about joining and detaching of std::thread. Joining Threads with std::thread::join() Once a thread is started then another thread can wait for this new thread to finish. For this another need need to call join() function on the std::thread object i.e. Advertisements std::thread th(funcPtr); // Some Code th.join(); Let’s see …
C++11 Multithreading – Part 2: Joining and Detaching ThreadsRead More