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
ee61e491
Commit
ee61e491
authored
Feb 08, 2017
by
Philip Carns
Browse files
clean up old terminology
parent
bfe20adc
Changes
6
Hide whitespace changes
Inline
Side-by-side
examples/client.c
View file @
ee61e491
...
...
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
args
[
i
].
hg_context
=
hg_context
;
args
[
i
].
svr_addr
=
svr_addr
;
/* Each
fiber
gets a pointer to an element of the array to use
/* Each
ult
gets a pointer to an element of the array to use
* as input for the run_my_rpc() function.
*/
ret
=
ABT_thread_create
(
pool
,
run_my_rpc
,
&
args
[
i
],
...
...
examples/my-rpc.c
View file @
ee61e491
...
...
@@ -62,7 +62,7 @@ static void my_rpc_ult(hg_handle_t handle)
/* write to a file; would be done with abt-io if we enabled it */
#if 0
sprintf(filename, "/tmp/
hg-fiber
-%d.txt", in.input_val);
sprintf(filename, "/tmp/
margo
-%d.txt", in.input_val);
fd = abt_io_open(aid, filename, O_WRONLY|O_CREAT, S_IWUSR|S_IRUSR);
assert(fd > -1);
...
...
include/margo.h
View file @
ee61e491
...
...
@@ -57,7 +57,7 @@ margo_instance_id margo_init_pool(ABT_pool progress_pool, ABT_pool handler_pool,
hg_context_t
*
hg_context
);
/**
* Shuts down margo library and its underlying
evfibers
and mercury resources
* Shuts down margo library and its underlying
abt
and mercury resources
* @param [in] mid Margo instance
*/
void
margo_finalize
(
margo_instance_id
mid
);
...
...
@@ -191,7 +191,7 @@ void margo_thread_sleep(
margo_instance_id
margo_hg_class_to_instance
(
hg_class_t
*
cl
);
/**
* macro that defines a function to glue an RPC handler to a
fib
er
* macro that defines a function to glue an RPC handler to a
ult handl
er
* @param [in] __name name of handler function
*/
#define DEFINE_MARGO_RPC_HANDLER(__name) \
...
...
@@ -212,7 +212,7 @@ hg_return_t __name##_handler(hg_handle_t handle) { \
/**
* macro that declares the prototype for a function to glue an RPC
* handler to a
fiber
* handler to a
ult
* @param [in] __name name of handler function
*/
#define DECLARE_MARGO_RPC_HANDLER(__name) hg_return_t __name##_handler(hg_handle_t handle);
...
...
tests/client-timeout.c
View file @
ee61e491
...
...
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
args
[
i
].
hg_context
=
hg_context
;
args
[
i
].
svr_addr
=
svr_addr
;
/* Each
fiber
gets a pointer to an element of the array to use
/* Each
ult
gets a pointer to an element of the array to use
* as input for the run_my_rpc() function.
*/
ret
=
ABT_thread_create
(
pool
,
run_my_rpc
,
&
args
[
i
],
...
...
tests/client.c
View file @
ee61e491
...
...
@@ -134,7 +134,7 @@ int main(int argc, char **argv)
args
[
i
].
hg_context
=
hg_context
;
args
[
i
].
svr_addr
=
svr_addr
;
/* Each
fiber
gets a pointer to an element of the array to use
/* Each
ult
gets a pointer to an element of the array to use
* as input for the run_my_rpc() function.
*/
ret
=
ABT_thread_create
(
pool
,
run_my_rpc
,
&
args
[
i
],
...
...
tests/my-rpc.c
View file @
ee61e491
...
...
@@ -64,7 +64,7 @@ static void my_rpc_ult(hg_handle_t handle)
/* write to a file; would be done with abt-io if we enabled it */
#if 0
sprintf(filename, "/tmp/
hg-fiber
-%d.txt", in.input_val);
sprintf(filename, "/tmp/
margo
-%d.txt", in.input_val);
fd = abt_io_open(aid, filename, O_WRONLY|O_CREAT, S_IWUSR|S_IRUSR);
assert(fd > -1);
...
...
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