From 4b879b1179b7cb92027caa10fcd9e9bb0ab89096 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 24 Jan 2008 17:29:12 +0000 Subject: [PATCH] Make the guard variable static since otherwise it doesn't help any. git-svn-id: https://svn.dealii.org/trunk@15673 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/vector_memory.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/include/lac/vector_memory.h b/deal.II/lac/include/lac/vector_memory.h index 14f36ce268..0a10028f72 100644 --- a/deal.II/lac/include/lac/vector_memory.h +++ b/deal.II/lac/include/lac/vector_memory.h @@ -342,7 +342,7 @@ class GrowingVectorMemory : public VectorMemory * internal data of this object * from multiple threads. */ - Threads::ThreadMutex mutex; + static Threads::ThreadMutex mutex; }; /*@}*/ @@ -405,6 +405,8 @@ GrowingVectorMemory::Pool::initialize(const unsigned int size) template typename GrowingVectorMemory::Pool GrowingVectorMemory::pool; +template +Threads::ThreadMutex GrowingVectorMemory::mutex; template -- 2.39.5