This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

checking multiple conditions to unblock the task in keil rtx

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.