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
Events have overtaken me
- 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
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
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