11 Sep
2011
11 Sep
'11
8:14 p.m.
I create a thread group and run the group with join_all(). My code shows like: for(i=0; i < runs; ++i) { threadgoup.join_all(); do something with the results } So I run the thread group n times. Is this the correct way or can I call join_all only once on the group?
You do not "run the group with join_all". join_all() waits (blocks) until the execution of all the threads in the group is complete - that's all. This is well documented: http://www.boost.org/doc/libs/1_47_0/doc/html/thread/thread_management.html#...