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
ee61e491
Commit
ee61e491
authored
Feb 08, 2017
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up old terminology
parent
bfe20adc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
examples/client.c
examples/client.c
+1
-1
examples/my-rpc.c
examples/my-rpc.c
+1
-1
include/margo.h
include/margo.h
+3
-3
tests/client-timeout.c
tests/client-timeout.c
+1
-1
tests/client.c
tests/client.c
+1
-1
tests/my-rpc.c
tests/my-rpc.c
+1
-1
No files found.
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