Process a message again in a resource manager
#include <sys/resmgr.h> int resmgr_msg_again( resmgr_context_t *ctp, int rcvid);
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The resmgr_msg_again() function reprocesses the message corresponding to the given rcvid. It does this by:
You use this function if your resource manager can't process a message right away. For example, if a read operation is blocked, your io_read handler would save the rcvid of the request, and then return _RESMGR_NOREPLY, leaving the client blocked. Later, when the resource manager can handle the request, it can call resmgr_msg_again() to reprocess the message.
MsgCurrent(), MsgInfo(), MsgRead(), resmgr_context_t
Writing a Resource Manager