Blocking thread with msgReceive

Hello,

Before, scuse for my english :stuck_out_tongue:

I want to do a thread that wait for a msg send by another.
I try this:

msgReceive(…);
mutex_lock();

But the thread is blocking only because the mutex is locked. And I want that the thread wait for a msg…

Could you help me?

Check the return value of msgReceive(…), see if there is an error returned.