Fix of last commit, bug689.

This commit is contained in:
Wilson Snyder 2013-10-28 21:57:52 -04:00
parent 9c9b4ed4e0
commit 3b874f759c

View File

@ -342,9 +342,8 @@ public:
VpioCbList& cbObjList = s_s.m_cbObjLists[cbp->reason()];
// We do not remove it now as we may be iterating the list,
// instead set to NULL and will cleanup later
for (VpioCbList::iterator it=cbObjList.begin(); it!=cbObjList.end(); ) {
if (*it == cbp) it = cbObjList.erase(it);
else ++it;
for (VpioCbList::iterator it=cbObjList.begin(); it!=cbObjList.end(); ++it) {
if (*it == cbp) *it = NULL;
}
}
static void cbTimedRemove(VerilatedVpioCb* cbp) {