Page 1 of 1

Clarification about EventGroups

Posted: Wed May 01, 2019 1:12 pm
by maldus
Hello everyone,
I need a clarification about the behavior of the xEventGroupWaitBits function. I am using event groups to notify multiple tasks when certain events occur using notification bits. When waiting, the tasks set the clearonexit parameter to pdTRUE to ensure that the notification is consumed.

What the documentation does not state is whether multiple tasks waiting on the same bits are woken before said bits are cleared. In other words: when I set a certain bit on the event group, will every task currently blocked on that group be woken before the bits are cleared?

After some experimentation I am fairly convinced this is the case, but I'd like a more formal confirmation.