Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
margo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
sds
margo
Commits
1bedc928
Commit
1bedc928
authored
Apr 14, 2016
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getters for mercury class/context
parent
ad0cc8f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
include/margo.h
include/margo.h
+16
-0
src/margo.c
src/margo.c
+11
-0
No files found.
include/margo.h
View file @
1bedc928
...
...
@@ -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
...
...
src/margo.c
View file @
1bedc928
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment