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_sg_synchro.c
diff --git
a/src/xbt/xbt_sg_synchro.c
b/src/xbt/xbt_sg_synchro.c
index
ee00c07
..
bf28586
100644
(file)
--- a/
src/xbt/xbt_sg_synchro.c
+++ b/
src/xbt/xbt_sg_synchro.c
@@
-49,13
+49,15
@@
xbt_thread_join(xbt_thread_t thread) {
}
void
}
void
-xbt_thread_
destroy
(xbt_thread_t thread) {
+xbt_thread_
cancel
(xbt_thread_t thread) {
SIMIX_process_kill(thread->s_process);
free(thread);
}
void xbt_thread_exit() {
SIMIX_process_kill(thread->s_process);
free(thread);
}
void xbt_thread_exit() {
- xbt_thread_destroy(xbt_thread_self());
+ xbt_thread_t me=SIMIX_process_get_data(SIMIX_process_self());
+ SIMIX_process_kill(me->s_process);
+ free(me);
}
xbt_thread_t xbt_thread_self(void) {
}
xbt_thread_t xbt_thread_self(void) {