Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
margo
Commits
740803a4
Commit
740803a4
authored
May 15, 2017
by
Philip Carns
Browse files
fix const warnings
- and use proper accessor fn for target_id
parent
e051b1d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
examples/multiplex/margo-example-mp-server.c
View file @
740803a4
...
...
@@ -24,7 +24,7 @@
static
void
my_rpc_shutdown_ult
(
hg_handle_t
handle
)
{
hg_return_t
hret
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
margo_instance_id
mid
;
//printf("Got RPC request to shutdown\n");
...
...
examples/multiplex/svc1-client.c
View file @
740803a4
...
...
@@ -38,7 +38,7 @@ void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id)
int
ret
;
hg_size_t
size
;
void
*
buffer
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
/* allocate buffer for bulk transfer */
size
=
512
;
...
...
@@ -57,7 +57,7 @@ void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id)
HG_BULK_READ_ONLY
,
&
in
.
bulk_handle
);
assert
(
ret
==
0
);
hgi
->
target_id
=
mplex_id
;
HG_Set_
target_id
(
handle
,
mplex_id
)
;
/* Send rpc. Note that we are also transmitting the bulk handle in the
* input struct. It was set above.
...
...
@@ -86,7 +86,7 @@ void svc1_do_other_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mpl
int
ret
;
hg_size_t
size
;
void
*
buffer
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
/* allocate buffer for bulk transfer */
size
=
512
;
...
...
@@ -105,7 +105,7 @@ void svc1_do_other_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mpl
HG_BULK_READ_ONLY
,
&
in
.
bulk_handle
);
assert
(
ret
==
0
);
hgi
->
target_id
=
mplex_id
;
HG_Set_
target_id
(
handle
,
mplex_id
)
;
/* Send rpc. Note that we are also transmitting the bulk handle in the
* input struct. It was set above.
...
...
examples/multiplex/svc1-server.c
View file @
740803a4
...
...
@@ -18,7 +18,7 @@ static void svc1_do_thing_ult(hg_handle_t handle)
hg_size_t
size
;
void
*
buffer
;
hg_bulk_t
bulk_handle
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
margo_instance_id
mid
;
ABT_thread
my_ult
;
ABT_xstream
my_xstream
;
...
...
@@ -77,7 +77,7 @@ static void svc1_do_other_thing_ult(hg_handle_t handle)
hg_size_t
size
;
void
*
buffer
;
hg_bulk_t
bulk_handle
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
margo_instance_id
mid
;
ABT_thread
my_ult
;
ABT_xstream
my_xstream
;
...
...
examples/multiplex/svc2-server.c
View file @
740803a4
...
...
@@ -18,7 +18,7 @@ static void svc2_do_thing_ult(hg_handle_t handle)
hg_size_t
size
;
void
*
buffer
;
hg_bulk_t
bulk_handle
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
margo_instance_id
mid
;
ABT_thread
my_ult
;
ABT_xstream
my_xstream
;
...
...
@@ -77,7 +77,7 @@ static void svc2_do_other_thing_ult(hg_handle_t handle)
hg_size_t
size
;
void
*
buffer
;
hg_bulk_t
bulk_handle
;
struct
hg_info
*
hgi
;
const
struct
hg_info
*
hgi
;
margo_instance_id
mid
;
ABT_thread
my_ult
;
ABT_xstream
my_xstream
;
...
...
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