// and accessing the fe_name_map variable. make this lock local to
// this file.
//
- // this and the next variable are declared static (even though
- // they're in an anonymous namespace) in order to make icc happy
+ // This variable is declared static (even though
+ // it belongs to an internal namespace) in order to make icc happy
// (which otherwise reports a multiply defined symbol when linking
- // libraries for more than one space dimension together
- static Threads::Mutex fe_name_map_lock;
+ // libraries for more than one space dimension together)
+ static std::mutex fe_name_map_lock;
// This is the map used by FETools::get_fe_by_name and
// FETools::add_fe_name. It is only accessed by functions in this
namespace
{
- Threads::Mutex log_lock;
- Threads::Mutex write_lock;
+ std::mutex log_lock;
+ std::mutex write_lock;
} // namespace
// more fine-grained solution
namespace
{
- Threads::Mutex coefficients_lock;
+ std::mutex coefficients_lock;
}
// deal.II/create_mass_matrix_05)
// will start to produce random
// results in multithread mode
- static Threads::Mutex mutex;
+ static std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex);
static std::vector<double> p_values;
// using a mutex to make sure they are not used by multiple threads
// at once
{
- static Threads::Mutex mutex;
+ static std::mutex mutex;
std::lock_guard<std::mutex> lock(mutex);
static std::vector<Tensor<1, dim>> p_values;