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
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
a277597a
Commit
a277597a
authored
Mar 29, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correcting small error
parent
fb885266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
include/margo.h
include/margo.h
+15
-14
No files found.
include/margo.h
View file @
a277597a
...
...
@@ -153,49 +153,50 @@ int margo_shutdown_remote_instance(
margo_instance_id
mid
,
hg_addr_t
remote_addr
);
/**
* Registers an RPC with margo
* Registers an RPC with margo
that is associated with a provider instance
*
* \param [in] mid Margo instance
* \param [in] func_name unique function name for RPC
* \param [in] in_proc_cb pointer to input proc callback
* \param [in] out_proc_cb pointer to output proc callback
* \param [in] rpc_cb RPC callback
* \param [in] provider_id provider identifier
* \param [in] pool Argobots pool the handler will execute in
*
* \return unique ID associated to the registered function
*/
inline
hg_id_t
margo
_register_name
(
hg_id_t
margo_provider
_register_name
(
margo_instance_id
mid
,
const
char
*
func_name
,
hg_proc_cb_t
in_proc_cb
,
hg_proc_cb_t
out_proc_cb
,
hg_rpc_cb_t
rpc_cb
)
{
return
margo_provider_register_name
(
mid
,
func_name
,
in_proc_cb
,
out_proc_cb
,
rpc_cb
,
0
,
ABT_POOL_NULL
);
}
hg_rpc_cb_t
rpc_cb
,
uint16_t
provider_id
,
ABT_pool
pool
);
/**
* Registers an RPC with margo
that is associated with a provider instance
* Registers an RPC with margo
*
* \param [in] mid Margo instance
* \param [in] func_name unique function name for RPC
* \param [in] in_proc_cb pointer to input proc callback
* \param [in] out_proc_cb pointer to output proc callback
* \param [in] rpc_cb RPC callback
* \param [in] provider_id provider identifier
* \param [in] pool Argobots pool the handler will execute in
*
* \return unique ID associated to the registered function
*/
hg_id_t
margo_provider
_register_name
(
inline
hg_id_t
margo
_register_name
(
margo_instance_id
mid
,
const
char
*
func_name
,
hg_proc_cb_t
in_proc_cb
,
hg_proc_cb_t
out_proc_cb
,
hg_rpc_cb_t
rpc_cb
,
uint16_t
provider_id
,
ABT_pool
pool
);
hg_rpc_cb_t
rpc_cb
)
{
return
margo_provider_register_name
(
mid
,
func_name
,
in_proc_cb
,
out_proc_cb
,
rpc_cb
,
0
,
ABT_POOL_NULL
);
}
/*
* Indicate whether margo_register_name() has been called for the RPC specified by
...
...
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