Public Member Functions | Private Attributes

Threads::ThreadGroup< RT > Class Template Reference
[Parallel computing with multiple processors accessing shared memory]

List of all members.

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.

Author:
Wolfgang Bangerth, 2003

Definition at line 3694 of file thread_management.h.


Member Function Documentation

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

Add another thread object to the collection.

Definition at line 3701 of file thread_management.h.

References Threads::ThreadGroup< RT >::threads.

template<typename RT = void>
void Threads::ThreadGroup< RT >::join_all (  ) const [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 3719 of file thread_management.h.

References Threads::ThreadGroup< RT >::threads.


Member Data Documentation

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

List of thread objects.

Definition at line 3729 of file thread_management.h.

Referenced by Threads::ThreadGroup< RT >::join_all(), and Threads::ThreadGroup< RT >::operator+=().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:17 by doxygen 1.7.2