From: wolf Date: Tue, 28 Jan 2003 20:48:17 +0000 (+0000) Subject: The check against multiple simultaneous runs of this function with a X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=053918e573155ef091a980becb06b6e305fa489b;p=dealii-svn.git The check against multiple simultaneous runs of this function with a 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 --- diff --git a/deal.II/deal.II/source/grid/grid_reordering.cc b/deal.II/deal.II/source/grid/grid_reordering.cc index f528a8b004..7451ea6226 100644 --- a/deal.II/deal.II/source/grid/grid_reordering.cc +++ b/deal.II/deal.II/source/grid/grid_reordering.cc @@ -423,7 +423,7 @@ GridReordering<3>::Cell::insert_faces (std::map &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; diff --git a/deal.II/doc/news/2002/c-3-4.html b/deal.II/doc/news/2002/c-3-4.html index 1eb4e2f62d..6c750d226c 100644 --- a/deal.II/doc/news/2002/c-3-4.html +++ b/deal.II/doc/news/2002/c-3-4.html @@ -615,6 +615,14 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

deal.II

    +
  1. + Fixed: The GridReordering tried to be + thread-safe in the initialization of some data, but was not due to a + typo. This is now fixed. +
    + (WB 2003/01/28) +

    +
  2. Changed: The FEValues::get_cell and FEValues::get_face functions have