]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Umpf.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 29 Jan 2003 15:09:38 +0000 (15:09 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 29 Jan 2003 15:09:38 +0000 (15:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@6978 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/thread_management.cc

index 718234dda70198d5ba2df6634e72ca887bea3818..8fdf6941fb394e2d6747bb5d08fe9f23ce94b600 100644 (file)
@@ -245,11 +245,10 @@ namespace Threads
     std::list<pthread_t> &tid_list
       = *reinterpret_cast<std::list<pthread_t>*>(thread_id_list);
     
-    {
-      ThreadMutex::ScopedLock lock (list_mutex);
-      tid_list.push_back (pthread_t());
-      pthread_t *tid = &tid_list.back();
-    }
+    list_mutex.acquire ();
+    tid_list.push_back (pthread_t());
+    pthread_t *tid = &tid_list.back();
+    list_mutex.release ();
     
                                      // start new thread. retry until
                                      // we either succeed or get an

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.