A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usefull function to "kill" a context before the function it was executing has terminated.
[simgrid.git]
/
include
/
xbt
/
context.h
diff --git
a/include/xbt/context.h
b/include/xbt/context.h
index
e035c7b
..
ea8a6f5
100644
(file)
--- a/
include/xbt/context.h
+++ b/
include/xbt/context.h
@@
-20,6
+20,7
@@
xbt_context_t xbt_context_new(xbt_context_function_t code,
void_f_pvoid_t startup_func, void *startup_arg,
void_f_pvoid_t cleanup_func, void *cleanup_arg,
int argc, char *argv[]);
void_f_pvoid_t startup_func, void *startup_arg,
void_f_pvoid_t cleanup_func, void *cleanup_arg,
int argc, char *argv[]);
+void xbt_context_free(xbt_context_t context);
void xbt_context_start(xbt_context_t context);
void xbt_context_yield(void);
void xbt_context_schedule(xbt_context_t context);
void xbt_context_start(xbt_context_t context);
void xbt_context_yield(void);
void xbt_context_schedule(xbt_context_t context);