Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Various sonar cleanups
[simgrid.git] / src / s4u / s4u_ActivitySet.cpp
index 215f126..61957a3 100644 (file)
@@ -103,13 +103,13 @@ ActivityPtr ActivitySet::wait_any_for(double timeout)
     return ret;
   } catch (const HostFailureException& e) {
     handle_failed_activities();
-    throw e;
+    throw;
   } catch (const NetworkFailureException& e) {
     handle_failed_activities();
-    throw e;
+    throw;
   } catch (const StorageFailureException& e) {
     handle_failed_activities();
-    throw e;
+    throw;
   }
 }
 
@@ -182,5 +182,9 @@ void sg_activity_set_delete(sg_activity_set_t as)
 {
   delete as;
 }
+void sg_activity_unref(sg_activity_t acti)
+{
+  acti->unref();
+}
 
 SG_END_DECL