
30 Apr
2008
30 Apr
'08
11:29 a.m.
Hello, I have several implementations of the same function with different algorithms. I want to launch these in parallel and join the one finishing the first, and stop the others. I have started and in my solution I need to wrap the function in order to make the needed synchronization, which seam not quite satisfactory. Is there an easy way to join the first thread that finish from a thread group and getting it? boost::thread_group tg; // ... boost::thread* first = tg.join_one(); Do you find useful this feature? Regards _____________________ Vicente Juan Botet Escriba