From: bangerth Date: Thu, 24 Jan 2008 17:29:12 +0000 (+0000) Subject: Make the guard variable static since otherwise it doesn't help any. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b879b1179b7cb92027caa10fcd9e9bb0ab89096;p=dealii-svn.git 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 --- 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