MGSmootherPrecondition that take a VectorMemory object.
- Deprecated variants of MeshWorker::loop and MeshWorker::integration_loop.
- ThreadManagement::spawn.
+ - Threads::ThreadCondition and Threads::ThreadMutex.
</ol>
<li> Removed: The config.h file no longer exports HAVE_* definitions.
};
- /**
- * Provide a backward compatible name (we used ThreadMutex up to release
- * 6.1, but since it is already in a namespace Threads this seems
- * redundant).
- *
- * @deprecated
- */
- typedef Mutex ThreadMutex DEAL_II_DEPRECATED;
-
- /**
- * Provide a backward compatible name (we used ThreadCondition up to release
- * 6.1, but since it is already in a namespace Threads this seems
- * redundant).
- *
- * @deprecated
- */
- typedef ConditionVariable ThreadCondition DEAL_II_DEPRECATED;
-
/**
* If using POSIX functions, then alias the POSIX wrapper classes to the
* names we use throughout the library.
* objects. Likewise for the barrier class.
*/
typedef DummyThreadMutex Mutex;
- typedef DummyThreadMutex ThreadMutex;
/**
* In non-multithread mode, the mutex and thread management classes are
* objects. Likewise for the barrier class.
*/
typedef DummyThreadCondition ConditionVariable;
- typedef DummyThreadCondition ThreadCondition;
/**
* In non-multithread mode, the mutex and thread management classes are
#include <deal.II/base/thread_management.h>
-Threads::ThreadMutex mutex;
+Threads::Mutex mutex;
void test ()
assemble_matrix (LinearSystem &linear_system,
const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const;
+ Threads::Mutex &mutex) const;
};
dof_handler.end (),
n_threads);
- Threads::ThreadMutex mutex;
+ Threads::Mutex mutex;
Threads::ThreadGroup<> threads;
for (unsigned int thread=0; thread<n_threads; ++thread)
threads += Threads::new_thread (&Solver<dim>::assemble_matrix, *this,
Solver<dim>::assemble_matrix (LinearSystem &linear_system,
const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const
+ Threads::Mutex &mutex) const
{
MappingQ<dim> mapping (4);
FEValues<dim> fe_values (mapping, *fe, *quadrature,
cell->get_dof_indices (local_dof_indices);
- Threads::ThreadMutex::ScopedLock lock (mutex);
+ Threads::Mutex::ScopedLock lock (mutex);
for (unsigned int i=0; i<dofs_per_cell; ++i)
for (unsigned int j=0; j<dofs_per_cell; ++j)
linear_system.matrix.add (local_dof_indices[i],
assemble_matrix (LinearSystem &linear_system,
const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const;
+ Threads::Mutex &mutex) const;
};
dof_handler.end (),
n_threads);
- Threads::ThreadMutex mutex;
+ Threads::Mutex mutex;
Threads::ThreadGroup<> threads;
for (unsigned int thread=0; thread<n_threads; ++thread)
threads += Threads::new_thread (&Solver<dim>::assemble_matrix, *this,
Solver<dim>::assemble_matrix (LinearSystem &linear_system,
const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const
+ Threads::Mutex &mutex) const
{
FEValues<dim> fe_values (*fe, *quadrature,
update_gradients | update_JxW_values);
cell->get_dof_indices (local_dof_indices);
- Threads::ThreadMutex::ScopedLock lock (mutex);
+ Threads::Mutex::ScopedLock lock (mutex);
for (unsigned int i=0; i<dofs_per_cell; ++i)
for (unsigned int j=0; j<dofs_per_cell; ++j)
linear_system.matrix.add (local_dof_indices[i],
assemble_matrix (LinearSystem &linear_system,
const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const;
+ Threads::Mutex &mutex) const;
};
n_threads);
{
- Threads::ThreadMutex mutex;
+ Threads::Mutex mutex;
for (unsigned int thread=0; thread<n_threads; ++thread)
{
assemble_matrix
Solver<dim>::assemble_matrix (LinearSystem &linear_system,
const typename DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const
+ Threads::Mutex &mutex) const
{
FEValues<dim> fe_values (*fe, *quadrature,
update_gradients | update_JxW_values);
cell->get_dof_indices (local_dof_indices);
- Threads::ThreadMutex::ScopedLock lock (mutex);
+ Threads::Mutex::ScopedLock lock (mutex);
for (unsigned int i=0; i<dofs_per_cell; ++i)
for (unsigned int j=0; j<dofs_per_cell; ++j)
linear_system.matrix.add (local_dof_indices[i],
assemble_matrix (LinearSystem &linear_system,
const typename hp::DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename hp::DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const;
+ Threads::Mutex &mutex) const;
};
dof_handler.end (),
n_threads);
- Threads::ThreadMutex mutex;
+ Threads::Mutex mutex;
Threads::ThreadGroup<> threads;
for (unsigned int thread=0; thread<n_threads; ++thread)
threads += Threads::new_thread (&Solver<dim>::assemble_matrix, *this,
Solver<dim>::assemble_matrix (LinearSystem &linear_system,
const typename hp::DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename hp::DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const
+ Threads::Mutex &mutex) const
{
hp::FEValues<dim> fe_values (*fe, *quadrature,
update_gradients | update_JxW_values);
cell->get_dof_indices (local_dof_indices);
- Threads::ThreadMutex::ScopedLock lock (mutex);
+ Threads::Mutex::ScopedLock lock (mutex);
for (unsigned int i=0; i<dofs_per_cell; ++i)
for (unsigned int j=0; j<dofs_per_cell; ++j)
linear_system.matrix.add (local_dof_indices[i],
assemble_matrix (LinearSystem &linear_system,
const typename hp::DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename hp::DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const;
+ Threads::Mutex &mutex) const;
};
dof_handler.end (),
n_threads);
- Threads::ThreadMutex mutex;
+ Threads::Mutex mutex;
Threads::ThreadGroup<> threads;
for (unsigned int thread=0; thread<n_threads; ++thread)
threads += Threads::new_thread (&Solver<dim>::assemble_matrix, *this,
Solver<dim>::assemble_matrix (LinearSystem &linear_system,
const typename hp::DoFHandler<dim>::active_cell_iterator &begin_cell,
const typename hp::DoFHandler<dim>::active_cell_iterator &end_cell,
- Threads::ThreadMutex &mutex) const
+ Threads::Mutex &mutex) const
{
hp::FEValues<dim> fe_values (*fe, *quadrature,
update_gradients | update_JxW_values);
cell->get_dof_indices (local_dof_indices);
- Threads::ThreadMutex::ScopedLock lock (mutex);
+ Threads::Mutex::ScopedLock lock (mutex);
for (unsigned int i=0; i<dofs_per_cell; ++i)
for (unsigned int j=0; j<dofs_per_cell; ++j)
linear_system.matrix.add (local_dof_indices[i],