PDA

View Full Version : storing threads in a vector, c++



3v3rgr33n
May 19th, 2013, 08:00 PM
How does one store threads in a vector in c++?

I currently have this.



std::vector<std::thread> threads;
threads.push_back(std::move(tmp));


Where tmp is a thread. This, however, creates a segmentation fault when trying to access
the thread again.

Please help