Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
if the deque is empty, remove it from the map
[simgrid.git] / src / smpi / internals / instr_smpi.cpp
index 63ee871..b55f098 100644 (file)
@@ -138,6 +138,8 @@ static std::string TRACE_smpi_get_key(int src, int dst, int tag, int send)
   } else {
     key = it->second->front();
     it->second->pop_front();
+    if (it->second->empty())
+      keys.erase(it);
   }
   return key;
 }