Is there anything like boost::thread_group in C++11?
I’m just trying to port my program from using boost:thread to C++11 threads and wasn’t able to find anything equivalent.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there’s nothing directly equivalent to
boost::thread_groupin C++11. You could use astd::vector<std::thread>if all you want is a container. You can then use either the newforsyntax orstd::for_eachto calljoin()on each element, or whatever.