]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/udpor_global.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
indentation
[simgrid.git] / src / mc / udpor_global.cpp
index 283a013335bf48419184e3ff746170abe138410a..d4bb5193b07fa4378b47614d535a1385f2dec9f0 100644 (file)
@@ -11,6 +11,14 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_udpor_global, mc, "udpor_global");
 namespace simgrid {
 namespace mc {
 
+EventSet EvtSetTools::makeUnion(EventSet s1, EventSet s2)
+{
+  EventSet res = s1;
+  for (auto evt : s2)
+    EvtSetTools::pushBack(res, evt);
+  return res;
+}
+
 void EvtSetTools::pushBack(EventSet& events, UnfoldingEvent* e)
 {
   if (!EvtSetTools::contains(events, e))