![]() |
Reference documentation for deal.II version GIT 7deb6c54a6 2023-06-09 18:50:02+00:00
|
#include <deal.II/base/thread_management.h>
Public Member Functions | |
ThreadGroup & | operator+= (const Thread< RT > &t) |
void | join_all () const |
Private Attributes | |
std::list< Thread< RT > > | threads |
A container for thread objects. Allows to add new thread objects and wait for them all together. The thread objects need to have the same return value for the called function.
Definition at line 883 of file thread_management.h.
|
inline |
Add another thread object to the collection.
Definition at line 890 of file thread_management.h.
|
inline |
Wait for all threads in the collection to finish. It is not a problem if some of them have already been waited for, i.e. you may call this function more than once, and you can also add new thread objects between subsequent calls to this function if you want.
Definition at line 903 of file thread_management.h.
|
private |
List of thread objects.
Definition at line 913 of file thread_management.h.