Events have overtaken me

Discussions and support about ChibiOS/RT, the free embedded RTOS.
Post Reply
lemmy
Posts: 13
Joined: Tue Oct 06, 2015 9:02 am
Been thanked: 2 times

Events have overtaken me

Post by lemmy »

I want to wait on two eventflags_t being set. Is that possible?

I see chEvtWaitAll() but that appears to wait on events. Is the only way to do it to register two event listeners?

Thank you
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Events have overtaken me

Post by Giovanni »

Hi,

Correct, you need 2 event listeners and then you wait for all the bits in their masks.

Listeners are required because there is a relationship N to N between event sources and threads.

Giovanni
Post Reply