]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make this file work in non-MT mode as well.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 May 2000 16:56:18 +0000 (16:56 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 May 2000 16:56:18 +0000 (16:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@2911 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/thread_management.cc

index bae4b33492ed166f99521aa3933326900837e7a5..9d50b6a4e42124926604a2722644cba93004648e 100644 (file)
@@ -15,8 +15,6 @@
 #include <base/thread_management.h>
 
 
-#ifdef DEAL_II_USE_MT
-
 
 namespace Threads 
 {
@@ -154,9 +152,15 @@ namespace Threads
                                     // once it has copied all data
     fun_data.fun_data_base->lock.acquire ();
                                     // now start the new thread
+#ifdef DEAL_II_USE_MT
     thread_manager.spawn (*fun_data.fun_data_base->thread_entry_point,
                          (void*)&fun_data,
                          THR_SCOPE_SYSTEM | THR_DETACHED);
+#else
+    thread_manager.spawn (*fun_data.fun_data_base->thread_entry_point,
+                         (void*)&fun_data,
+                         0);
+#endif
   };
 
 
@@ -212,4 +216,3 @@ namespace Threads
 
 
 
-#endif // DEAL_II_USE_MT

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.