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
2a8c6f6f
Commit
2a8c6f6f
authored
Apr 27, 2016
by
Philip Carns
Browse files
use proper Mercury API for cancel
parent
8f775834
Changes
1
Show whitespace changes
Inline
Side-by-side
src/margo.c
View file @
2a8c6f6f
...
@@ -17,11 +17,6 @@
...
@@ -17,11 +17,6 @@
#include "margo-timer.h"
#include "margo-timer.h"
#include "utlist.h"
#include "utlist.h"
/* TODO: including core.h for cancel definition, presumably this will be
* available in top level later?
*/
#include <mercury_core.h>
#define MERCURY_PROGRESS_TIMEOUT_UB 100
/* 100 milliseconds */
#define MERCURY_PROGRESS_TIMEOUT_UB 100
/* 100 milliseconds */
struct
margo_instance
struct
margo_instance
...
@@ -276,7 +271,7 @@ static void margo_forward_timeout_cb(void *arg)
...
@@ -276,7 +271,7 @@ static void margo_forward_timeout_cb(void *arg)
(
margo_forward_timeout_cb_dat
*
)
arg
;
(
margo_forward_timeout_cb_dat
*
)
arg
;
/* cancel the Mercury op if the forward timed out */
/* cancel the Mercury op if the forward timed out */
HG_C
ore_c
ancel
(
timeout_cb_dat
->
handle
);
HG_Cancel
(
timeout_cb_dat
->
handle
);
return
;
return
;
}
}
...
...
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