Reference documentation for deal.II version Git efdee58d95 2021-02-25 10:11:08 -0700
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | Private Attributes | List of all members

#include <deal.II/base/thread_management.h>

Public Member Functions

ThreadGroupoperator+= (const Thread< RT > &t)
void join_all () const

Private Attributes

std::list< Thread< RT > > threads

Detailed Description

template<typename RT = void>
class Threads::ThreadGroup< RT >

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 890 of file thread_management.h.

Member Function Documentation

◆ operator+=()

template<typename RT = void>
ThreadGroup& Threads::ThreadGroup< RT >::operator+= ( const Thread< RT > &  t)

Add another thread object to the collection.

Definition at line 897 of file thread_management.h.

◆ join_all()

template<typename RT = void>
void Threads::ThreadGroup< RT >::join_all ( ) const

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 910 of file thread_management.h.

Member Data Documentation

◆ threads

template<typename RT = void>
std::list<Thread<RT> > Threads::ThreadGroup< RT >::threads

List of thread objects.

Definition at line 922 of file thread_management.h.

The documentation for this class was generated from the following file: