/**
* A mutex that guards the following scratch arrays.
*/
- mutable std::mutex mutex;
+ mutable Threads::Mutex mutex;
/**
* Auxiliary values for the usual Function interface.
/**
* A mutex for accelerator object.
*/
- mutable std::mutex acc_mutex;
+ mutable Threads::Mutex acc_mutex;
};
} // namespace Functions
/**
* Thread mutex for supporting evaluation in multi-threaded contexts.
*/
- mutable std::mutex mutex;
+ mutable Threads::Mutex mutex;
};
} // namespace Functions
* A lock that makes sure that this class gives reasonable results even when
* used with several threads.
*/
- std::mutex mutex;
+ Threads::Mutex mutex;
};
/**
* Move constructor.
*/
- FESystem(FESystem<dim, spacedim> &&other_fe_system)
+ FESystem(FESystem<dim, spacedim> &&other_fe_system) noexcept
: FiniteElement<dim, spacedim>(std::move(other_fe_system))
{
base_elements = std::move(other_fe_system.base_elements);
/**
* A variable to guard access to the fe_values variable.
*/
- mutable std::mutex fe_values_mutex;
+ mutable Threads::Mutex fe_values_mutex;
};
};
* A mutex to avoid that multiple vmult() invocations by different threads
* overwrite the temporary vectors.
*/
- mutable std::mutex mutex;
+ mutable Threads::Mutex mutex;
/**
* Initializes the factors theta and delta based on an eigenvalue
/**
* Thread mutex.
*/
- mutable std::mutex mutex;
+ mutable Threads::Mutex mutex;
};
// ----------------------- inline functions ----------------------------
* Mutex to synchronize access to internal data of this object from multiple
* threads.
*/
- static std::mutex mutex;
+ static Threads::Mutex mutex;
};
template <typename VectorType>
-std::mutex GrowingVectorMemory<VectorType>::mutex;
+Threads::Mutex GrowingVectorMemory<VectorType>::mutex;