Page 1 of 1

Salvo messages

PostPosted: Fri May 09, 2008 3:01 am
by Teijok

When i sending message(not queue) is there any way to check if receiver task ready to receive new message?


Re: Salvo messages

PostPosted: Fri May 09, 2008 5:19 am
by aek
What would be the state of the task that it would nt be able / ready to receive the message?

Basically, the answer is no.

It's important to note that messages are not sent to a particular task ... they are simply sent. When you signal a message, you indicate only which message is to be signaled, not (also) to which task the message is "sent".

Tasks that wait a message wait on it on a priority basis ... i.e. if you call OS_WaitMsg(msgP) in two different tasks, when you signal the message, the higher-priority task will receive the message ...