]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
The check against multiple simultaneous runs of this function with a
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 28 Jan 2003 20:48:17 +0000 (20:48 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 28 Jan 2003 20:48:17 +0000 (20:48 +0000)
local variable as mutex is of course bogus: this needs to be a
_static_ local variable!

git-svn-id: https://svn.dealii.org/trunk@6976 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_reordering.cc
deal.II/doc/news/2002/c-3-4.html

index f528a8b0044f00d44dbda2bc6660e2e452efc922..7451ea62262820325fbe90a79a343b79c2652f35 100644 (file)
@@ -423,7 +423,7 @@ GridReordering<3>::Cell::insert_faces (std::map<Face,FaceData> &global_faces)
                                   // wanted to read in two grids at
                                   // the same time, for whatever
                                   // reason).
-  Threads::ThreadMutex initialization_lock;
+  static Threads::ThreadMutex initialization_lock;
   initialization_lock.acquire ();
 
   static bool already_initialized = false;
index 1eb4e2f62d1f0ed43be20f3423cfe158671d3c4e..6c750d226c9e0a74b961827fb7127d433f4f49c0 100644 (file)
@@ -615,6 +615,14 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK
 <h3>deal.II</h3>
 
 <ol>
+  <li> <p> 
+       Fixed: The <code class="class">GridReordering</code> tried to be
+       thread-safe in the initialization of some data, but was not due to a
+       typo. This is now fixed.
+       <br>
+       (WB 2003/01/28)
+       </p>
+
   <li> <p> 
        Changed: The <code class="member">FEValues::get_cell</code> and
        <code class="member">FEValues::get_face</code> functions have

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.