Page 1 of 1

Events have overtaken me

Posted: Fri Nov 04, 2016 5:04 pm
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

Re: Events have overtaken me

Posted: Fri Nov 04, 2016 7:14 pm
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