X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/44ca997a01460e17c9affb8fd4915daf91c439d5..7166ae6c85f79709c2d6dedb68b0c39af3222857:/src/xbt/xbt_sg_synchro.c diff --git a/src/xbt/xbt_sg_synchro.c b/src/xbt/xbt_sg_synchro.c index ee00c07ba3..bf28586441 100644 --- 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 -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() { - 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) {