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
17
Issues
17
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
61c2416b
Commit
61c2416b
authored
Jun 09, 2017
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
old update, should have been pushed earlier
parent
b541341c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
19 deletions
+4
-19
examples/composition/delegator-service.c
examples/composition/delegator-service.c
+4
-19
No files found.
examples/composition/delegator-service.c
View file @
61c2416b
...
...
@@ -83,27 +83,12 @@ DEFINE_MARGO_RPC_HANDLER(delegator_read_ult)
int
delegator_service_register
(
margo_instance_id
mid
,
ABT_pool
pool
,
uint32_t
mplex_id
)
{
int
hret
;
hg_id_t
id
;
hg_bool_t
flag
;
/* register client-side of function to relay */
/*
TODO: make this safe; right now if we register again as a client we lose the RPC
*
handler ptr
/*
NOTE: this RPC may already be registered if this process has already registered a
*
data-xfer service
*/
hret
=
HG_Registered_name
(
margo_get_class
(
mid
),
"data_xfer_read"
,
&
id
,
&
flag
);
assert
(
hret
==
HG_SUCCESS
);
if
(
!
flag
)
{
printf
(
"DBG: registering client side data_xfer_read.
\n
"
);
g_data_xfer_read_id
=
MERCURY_REGISTER
(
margo_get_class
(
mid
),
"data_xfer_read"
,
data_xfer_read_in_t
,
data_xfer_read_out_t
,
NULL
);
}
else
{
printf
(
"DBG: NOT registering client side data_xfer_read.
\n
"
);
g_data_xfer_read_id
=
id
;
}
g_data_xfer_read_id
=
MERCURY_REGISTER
(
margo_get_class
(
mid
),
"data_xfer_read"
,
data_xfer_read_in_t
,
data_xfer_read_out_t
,
NULL
);
/* register RPC handler */
MARGO_REGISTER
(
mid
,
"delegator_read"
,
delegator_read_in_t
,
delegator_read_out_t
,
delegator_read_ult_handler
,
mplex_id
,
pool
);
...
...
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