From: mquinson Date: Thu, 15 Oct 2009 16:24:51 +0000 (+0000) Subject: Do not call xbt_thread_exit at the end of the dopar worker since this call forcefully... X-Git-Tag: SVN~928 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/693fd41cd1c94ab1d9ad0b2ede89d71e0ed452e2 Do not call xbt_thread_exit at the end of the dopar worker since this call forcefully kills the process in SG, preventing the wrapper to cleanup around before leaving git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6786 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_synchro.c b/src/xbt/xbt_synchro.c index 59deea412d..216b6f7d70 100644 --- a/src/xbt/xbt_synchro.c +++ b/src/xbt/xbt_synchro.c @@ -9,6 +9,7 @@ #include "xbt/sysdep.h" #include "xbt/dynar.h" #include "xbt/synchro.h" +XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(xbt_sync); typedef struct { xbt_dynar_t data; @@ -25,7 +26,6 @@ static void worker_wait_n_free(void*w) { static void worker_wrapper(void *w) { worker_data_t me=(worker_data_t)w; (*me->function)(me->rank,xbt_dynar_get_ptr(me->data,me->rank)); - xbt_thread_exit(); } void xbt_dynar_dopar(xbt_dynar_t datas, void_f_int_pvoid_t function) {