From: bangerth Date: Tue, 19 Feb 2013 15:25:50 +0000 (+0000) Subject: Avoid deprecated class names. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5a4144e04041eebc4606edf88d0af5b5a2a30a;p=dealii-svn.git Avoid deprecated class names. git-svn-id: https://svn.dealii.org/trunk@28462 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-13/step-13.cc b/deal.II/examples/step-13/step-13.cc index b85cb3d50a..967a926768 100644 --- a/deal.II/examples/step-13/step-13.cc +++ b/deal.II/examples/step-13/step-13.cc @@ -2,7 +2,7 @@ /* $Id$ */ /* */ -/* Copyright (C) 2001-2004, 2006-2009, 2011-2012 by the deal.II authors */ +/* Copyright (C) 2001-2004, 2006-2009, 2011-2013 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -640,7 +640,7 @@ namespace Step13 assemble_matrix (LinearSystem &linear_system, const typename DoFHandler::active_cell_iterator &begin_cell, const typename DoFHandler::active_cell_iterator &end_cell, - Threads::ThreadMutex &mutex) const; + Threads::Mutex &mutex) const; }; @@ -746,7 +746,7 @@ namespace Step13 // cells, and fill the matrix object with it. Since there is need for // synchronization when filling the same matrix from different threads, // we need a mutex here: - Threads::ThreadMutex mutex; + Threads::Mutex mutex; Threads::ThreadGroup<> threads; for (unsigned int thread=0; thread::assemble_matrix, @@ -797,7 +797,7 @@ namespace Step13 Solver::assemble_matrix (LinearSystem &linear_system, const typename DoFHandler::active_cell_iterator &begin_cell, const typename DoFHandler::active_cell_iterator &end_cell, - Threads::ThreadMutex &mutex) const + Threads::Mutex &mutex) const { FEValues fe_values (*fe, *quadrature, update_gradients | update_JxW_values); @@ -855,10 +855,10 @@ namespace Step13 // function was exited by an exception that we did not forsee. // // deal.II implements the scoped locking pattern in the - // ThreadMutex::ScopedLock class: it takes the mutex in the + // Treads::Mutex::ScopedLock class: it takes the mutex in the // constructor and locks it; in its destructor, it unlocks it // again. So here is how it is used: - Threads::ThreadMutex::ScopedLock lock (mutex); + Threads::Mutex::ScopedLock lock (mutex); for (unsigned int i=0; i::active_cell_iterator &begin_cell, const typename DoFHandler::active_cell_iterator &end_cell, - Threads::ThreadMutex &mutex) const; + Threads::Mutex &mutex) const; }; @@ -541,7 +541,7 @@ namespace Step14 dof_handler.end (), n_threads); - Threads::ThreadMutex mutex; + Threads::Mutex mutex; Threads::ThreadGroup<> threads; for (unsigned int thread=0; thread::assemble_matrix, @@ -575,7 +575,7 @@ namespace Step14 Solver::assemble_matrix (LinearSystem &linear_system, const typename DoFHandler::active_cell_iterator &begin_cell, const typename DoFHandler::active_cell_iterator &end_cell, - Threads::ThreadMutex &mutex) const + Threads::Mutex &mutex) const { FEValues fe_values (*fe, *quadrature, update_gradients | update_JxW_values); @@ -603,7 +603,7 @@ namespace Step14 cell->get_dof_indices (local_dof_indices); - Threads::ThreadMutex::ScopedLock lock (mutex); + Threads::Mutex::ScopedLock lock (mutex); for (unsigned int i=0; i./configure script in the top-level directory), then a - // dummy the actual data type of the typedef - // Threads::ThreadMutex is a class that provides all the + // ./configure script in the top-level directory), then + // the actual data type of the typedef + // Threads::Mutex is a dummy class that provides all the // functions needed for a mutex, but does nothing when they are called; // this is reasonable, of course, since if only one thread is running at a // time, there is no need to synchronize with other threads. - Threads::ThreadMutex assembler_lock; + Threads::Mutex assembler_lock; };