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
Go for a thread_cancel instead of a thread_destroy since every documentation says...
[simgrid.git]
/
src
/
xbt
/
xbt_rl_synchro.c
diff --git
a/src/xbt/xbt_rl_synchro.c
b/src/xbt/xbt_rl_synchro.c
index
9c6bde4
..
dfb439a
100644
(file)
--- a/
src/xbt/xbt_rl_synchro.c
+++ b/
src/xbt/xbt_rl_synchro.c
@@
-60,6
+60,9
@@
xbt_thread_t xbt_thread_self(void) {
void xbt_thread_yield(void) {
xbt_os_thread_yield();
}
void xbt_thread_yield(void) {
xbt_os_thread_yield();
}
+void xbt_thread_cancel(xbt_thread_t t) {
+ xbt_os_thread_cancel(t->os_thread);
+}
/****** mutex related functions ******/
struct xbt_mutex_ {
/* KEEP IT IN SYNC WITH OS IMPLEMENTATION (both win and lin) */
/****** mutex related functions ******/
struct xbt_mutex_ {
/* KEEP IT IN SYNC WITH OS IMPLEMENTATION (both win and lin) */