]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make the guard variable static since otherwise it doesn't help any.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Jan 2008 17:29:12 +0000 (17:29 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 24 Jan 2008 17:29:12 +0000 (17:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@15673 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector_memory.h

index 14f36ce268b6a3c410152b85165cb637c7b102fc..0a10028f727352326478d33f358b644efa6eb688 100644 (file)
@@ -342,7 +342,7 @@ class GrowingVectorMemory : public VectorMemory<VECTOR>
                                      * internal data of this object
                                      * from multiple threads.
                                      */
-    Threads::ThreadMutex mutex;
+    static Threads::ThreadMutex mutex;
 };
 
 /*@}*/
@@ -405,6 +405,8 @@ GrowingVectorMemory<VECTOR>::Pool::initialize(const unsigned int size)
 
 template <typename VECTOR>
 typename GrowingVectorMemory<VECTOR>::Pool GrowingVectorMemory<VECTOR>::pool;
+template <typename VECTOR>
+Threads::ThreadMutex GrowingVectorMemory<VECTOR>::mutex;
 
 
 template <typename VECTOR>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.