Commit 1bedc928 authored by Jonathan Jenkins's avatar Jonathan Jenkins

getters for mercury class/context

parent ad0cc8f6
......@@ -60,6 +60,22 @@ void margo_wait_for_finalize(margo_instance_id mid);
*/
ABT_pool* margo_get_handler_pool(margo_instance_id mid);
/**
* Retrieve the Mercury context that was associated with this instance at
* initialization time
* @param [in] mid Margo instance
* @return the Mercury context used in margo_init
*/
hg_context_t* margo_get_context(margo_instance_id mid);
/**
* Retrieve the Mercury class that was associated with this instance at
* initialization time
* @param [in] mid Margo instance
* @return the Mercury class used in margo_init
*/
hg_class_t* margo_get_class(margo_instance_id mid);
/**
* Forward an RPC request to a remote host
* @param [in] mid Margo instance
......
......@@ -220,6 +220,17 @@ ABT_pool* margo_get_handler_pool(margo_instance_id mid)
return(&mid->handler_pool);
}
hg_context_t* margo_get_context(margo_instance_id mid)
{
return(mid->hg_context);
}
hg_class_t* margo_get_class(margo_instance_id mid)
{
return(mid->hg_class);
}
static hg_return_t margo_cb(const struct hg_cb_info *info)
{
hg_return_t hret = info->ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment