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
chuck cranor
margo
Commits
34637d8d
Commit
34637d8d
authored
Mar 29, 2016
by
Philip Carns
Browse files
zero byte eventual for server wait
parent
0071e7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/server.c
View file @
34637d8d
...
...
@@ -21,7 +21,6 @@ int main(int argc, char **argv)
{
int
ret
;
ABT_eventual
eventual
;
int
*
shutdown
;
margo_instance_id
mid
;
ABT_xstream
handler_xstream
;
ABT_pool
handler_pool
;
...
...
@@ -143,14 +142,14 @@ int main(int argc, char **argv)
my_rpc_ult_handler
);
/* suspend this ULT until someone tells us to shut down */
ret
=
ABT_eventual_create
(
sizeof
(
*
shutdown
)
,
&
eventual
);
ret
=
ABT_eventual_create
(
0
,
&
eventual
);
if
(
ret
!=
0
)
{
fprintf
(
stderr
,
"Error: ABT_eventual_create()
\n
"
);
return
(
-
1
);
}
ABT_eventual_wait
(
eventual
,
(
void
**
)
&
shutdown
);
ABT_eventual_wait
(
eventual
,
NULL
);
/* shut down everything */
margo_finalize
(
mid
);
...
...
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