Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
if the deque is empty, remove it from the map
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 16 Jul 2018 13:30:45 +0000 (15:30 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 16 Jul 2018 13:30:45 +0000 (15:30 +0200)
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;
 }