Threads are created in a loop, and their number is not known in advance.
threads.push_back(boost::thread(readFile, it->path())); How to know when all such threads have completed their work?
Source: https://ru.stackoverflow.com/questions/617367/
All Articles