I have a question about the chEvtBroadcastFlags.
What is the defined behaviour when there are no listeners?
From the code I am unsure how
Code: Select all
while (elp != (event_listener_t *)esp)Could someone clarify?
More or less I wonder if I have to check if someone is listening:
Code: Select all
osalSysLock();
if (chEvtIsListeningI(&my_events_es))
{
chEvtBroadcastFlagsI(&my_events_es,
MY_EVENTMASK);
osalOsRescheduleS();
}
osalSysUnlock();Code: Select all
chEvtBroadcastFlags(&my_es,
MY_EVENTMASK);Thanks!