mirror of https://github.com/ARMmbed/mbed-os.git
equeue: skip equeue_incid call for user allocated events while dispatching
User allocaded events doesn't utilize id field in a way that normal event does, so we shouldn't call equeue_incid on itpull/12319/head
parent
69a7d67699
commit
acfdc588af
|
@ -506,7 +506,9 @@ void equeue_dispatch(equeue_t *q, int ms)
|
|||
e->target += e->period;
|
||||
equeue_enqueue(q, e, equeue_tick());
|
||||
} else {
|
||||
equeue_incid(q, e);
|
||||
if (!EQUEUE_IS_USER_ALLOCATED_EVENT(e)) {
|
||||
equeue_incid(q, e);
|
||||
}
|
||||
equeue_dealloc(q, e + 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue