mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Fix of last commit, bug689.
This commit is contained in:
parent
9c9b4ed4e0
commit
3b874f759c
@ -342,9 +342,8 @@ public:
|
|||||||
VpioCbList& cbObjList = s_s.m_cbObjLists[cbp->reason()];
|
VpioCbList& cbObjList = s_s.m_cbObjLists[cbp->reason()];
|
||||||
// We do not remove it now as we may be iterating the list,
|
// We do not remove it now as we may be iterating the list,
|
||||||
// instead set to NULL and will cleanup later
|
// instead set to NULL and will cleanup later
|
||||||
for (VpioCbList::iterator it=cbObjList.begin(); it!=cbObjList.end(); ) {
|
for (VpioCbList::iterator it=cbObjList.begin(); it!=cbObjList.end(); ++it) {
|
||||||
if (*it == cbp) it = cbObjList.erase(it);
|
if (*it == cbp) *it = NULL;
|
||||||
else ++it;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static void cbTimedRemove(VerilatedVpioCb* cbp) {
|
static void cbTimedRemove(VerilatedVpioCb* cbp) {
|
||||||
|
Loading…
Reference in New Issue
Block a user