axl_bool vortex_channel_block_until_replies_are_sent ( VortexChannel channel,
long  microseconds_to_wait 
)

Block the caller until all pending replies are sent for the channel provided.

Parameters
channelThe channel that could contain pending replies to be sent.
microseconds_to_waitAmount of time to implement the timeout or -1 if the caller is requesting to lock using default timeout provided by vortex_connection_get_timeout.
Returns
axl_true if all pending replies were sent (or no pending replies were found). Otherwise axl_false is returned due to connection problems (vortex_connection_is_ok) or because timeout has been reached.

References vortex_channel_get_ctx(), VORTEX_COND_TIMEDWAIT, vortex_connection_get_id(), vortex_connection_get_timeout(), vortex_connection_is_ok(), vortex_mutex_lock(), and vortex_mutex_unlock().

Referenced by vortex_greetings_error_send().