Dear people,
                       I have a scenario as shown below, please tell me if it is possible or not


------------------------------------------------------------------
while(!IsDone)
{

// some code here

MPI_Irecv( .......... );

// some code here

MPI_Iprobe( ........., &is_there_a_message);

if(is_there_a_message)
    MPI_Wait( ....... );

// move forward ... some other code here....

}
--------------------------------------------------------------------

My scenario is an asynchronous communication where some other process may or may not send a message to this process, will MPI_Iprobe find out whether it is necessary to call MPI_Wait()
or not ? because if we do not do this the process may start waiting for a message that may not come and will block.

regards,
Mudassar