Reference documentation for deal.II version Git bedfa10003 2019-09-17 13:28:06 -0600

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

## Public Member Functions

void signal ()

void wait (Mutex &mutex)

## Private Attributes

std::condition_variable condition_variable

## Detailed Description

Class implementing a condition variable. The semantics of this class and its member functions are the same as those of the POSIX functions.

Deprecated:

Definition at line 174 of file thread_management.h.

## ◆ signal()

inline

Signal to a single listener that a condition has been met, i.e. that some data will now be available.

Definition at line 182 of file thread_management.h.

inline

Signal to multiple listener that a condition has been met, i.e. that some data will now be available.

Definition at line 192 of file thread_management.h.

## ◆ wait()

 void Threads::ConditionVariable::wait ( Mutex & mutex )
inline

Wait for the condition to be signalled. Signal variables need to be guarded by a mutex which needs to be given to this function as an argument, see the man page of pthread_cond_wait for a description of the mechanisms.

The mutex is assumed held at the entry to this function but is released upon exit.

Definition at line 207 of file thread_management.h.