Clarification about EventGroups

maldus
Posts: 83
Joined: Wed Jun 06, 2018 1:41 pm

Clarification about EventGroups

Postby maldus » Wed May 01, 2019 1:12 pm

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.

Who is online

Users browsing this forum: axellin, Bing [Bot], stijnb1234, uC_Jon and 133 guests