Class template Dune::GDT::ThreadSafeDefaultLocalFiniteElementFamily<D, d, R, r, rC>¶
Inherits from Dune::GDT::LocalFiniteElementFamilyInterface.
-
template<class D, size_t d, class R = double, size_t r = 1, size_t rC = 1>
class Dune::GDT::ThreadSafeDefaultLocalFiniteElementFamily<D, d, R, r, rC> : public LocalFiniteElementFamilyInterface<D, d, R, r, rC>¶ Implements LocalFiniteElementFamilyInterface by lazily creating and caching local finite elements from a user-provided factory, with creation guarded by a mutex.
Note
See the implementation of get() for a caveat regarding the double-checked locking pattern used here.
Method Dune::GDT::ThreadSafeDefaultLocalFiniteElementFamily::get¶
Constructor Dune::GDT::ThreadSafeDefaultLocalFiniteElementFamily::ThreadSafeDefaultLocalFiniteElementFamily¶
-
template<class D, size_t d, class R = double, size_t r = 1, size_t rC = 1>
explicit Dune::GDT::ThreadSafeDefaultLocalFiniteElementFamily<D, d, R, r, rC>::ThreadSafeDefaultLocalFiniteElementFamily(std::function<std::unique_ptr<LocalFiniteElementType>(const GeometryType&, const int&)> factory)¶ No documentation provided.