Dear Team,
To Achieve:
I want to put the threadX in running state when eventFlagX is set OR queueX has received a data; otherwise threadX will be in blocked state.
Problem:
I am unable to do this; as using timeout values as osWaitForever on any one of the two conditions restricts the checking of other condition. Also, I cant keep timeout value 0 as i want threadX to be in blocked state when there is no event flag is set or queue doesnt have any data. Please help me with correct & efficient approach.
I am using KEIL5 and rts keil RTOS2 (API) on LPC4357 as target.
Thanks.
Hi.Maybe you should split 1 thread to 2 threads one handling event and the other handling queue.