Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge nested try blocks (Sonar).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 2 Oct 2018 08:57:51 +0000 (10:57 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 2 Oct 2018 09:12:13 +0000 (11:12 +0200)
examples/s4u/platform-failures/s4u-platform-failures.cpp

index 77741db..0d57421 100644 (file)
@@ -86,16 +86,10 @@ static int worker(int argc, char* argv[])
         break;
       }
       /*  - Otherwise, process the task */
-      try {
-        XBT_INFO("Start execution...");
-        simgrid::s4u::this_actor::execute(comp_size);
-        XBT_INFO("Execution complete.");
-        delete payload;
-      } catch (simgrid::HostFailureException& e) {
-        delete payload;
-        XBT_INFO("Gloups. The cpu on which I'm running just turned off!. See you!");
-        return -1;
-      }
+      XBT_INFO("Start execution...");
+      simgrid::s4u::this_actor::execute(comp_size);
+      XBT_INFO("Execution complete.");
+      delete payload;
     } catch (simgrid::HostFailureException& e) {
       XBT_INFO("Gloups. The cpu on which I'm running just turned off!. See you!");
       delete payload;