From: Frederic Suter Date: Mon, 16 Jul 2018 13:30:45 +0000 (+0200) Subject: if the deque is empty, remove it from the map X-Git-Tag: v3_21~423 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9086c78d060e42312987d34efb10d3dd03d103b3 if the deque is empty, remove it from the map --- diff --git a/src/smpi/internals/instr_smpi.cpp b/src/smpi/internals/instr_smpi.cpp index 63ee87112a..b55f098116 100644 --- a/src/smpi/internals/instr_smpi.cpp +++ b/src/smpi/internals/instr_smpi.cpp @@ -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; }