aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chevents.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/chevents.c b/src/chevents.c
index a617e3edf..796577ace 100644
--- a/src/chevents.c
+++ b/src/chevents.c
@@ -91,19 +91,10 @@ void chEvtClear(t_eventmask mask) {
* @param esp pointer to the \p EventSource structure
*/
void chEvtSend(EventSource *esp) {
- EventListener *elp;
chSysLock();
- elp = esp->es_next;
- while (elp != (EventListener *)esp) {
- Thread *tp = elp->el_listener;
-
- tp->p_epending |= EventMask(elp->el_id);
- if ((tp->p_state == PRWTEVENT) && (tp->p_epending & tp->p_ewmask))
- chSchReadyI(tp);
- elp = elp->el_next;
- }
+ chEvtSendI(esp);
chSchRescheduleS();
chSysUnlock();