Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Please codacy (operator !).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Aug 2017 21:00:35 +0000 (23:00 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 3 Aug 2017 21:04:16 +0000 (23:04 +0200)
teshsuite/xbt/parmap_bench/parmap_bench.cpp

index f7d0fcc..9f74d1c 100644 (file)
@@ -47,13 +47,12 @@ static std::string parmap_mode_name(e_xbt_parmap_mode_t mode)
 
 static bool parmap_skip_mode(e_xbt_parmap_mode_t mode)
 {
-#if !HAVE_FUTEX_H
-  if (mode == XBT_PARMAP_FUTEX) {
+  if (mode == XBT_PARMAP_FUTEX && not HAVE_FUTEX_H) {
     std::cout << "not available\n";
     return true;
-  } else
-#endif
+  } else {
     return false;
+  }
 }
 
 static unsigned fibonacci(unsigned n)