]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify EAGAIN condition around pthread_create
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 20 Dec 2002 00:11:00 +0000 (00:11 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 20 Dec 2002 00:11:00 +0000 (00:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@6861 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/thread_management.cc

index 13d632f0d638ee81d6dd1977ff4967b1acf94866..febde0806805b6e4b3c2ba4b628bb3421c71289b 100644 (file)
@@ -243,7 +243,7 @@ namespace Threads
       {
        error = pthread_create (&tid_list.back(), 0, fun_ptr, fun_data);
       }
-    while ( ! ((error == 0) || (error != EAGAIN)));
+    while (error == EAGAIN);
 
     Assert (error == 0, ExcInternalError());
   };

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.