X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dff9e15c44ab6340d27215957c56fa72fad246a2..0a03cd809dd45e3645a54feffe364d8f2b33d71e:/src/xbt/xbt_rl_synchro.c diff --git a/src/xbt/xbt_rl_synchro.c b/src/xbt/xbt_rl_synchro.c index 1a74c0bd40..c66c29a8df 100644 --- a/src/xbt/xbt_rl_synchro.c +++ b/src/xbt/xbt_rl_synchro.c @@ -20,8 +20,8 @@ #include "xbt/xbt_os_thread.h" /* The implementation we use */ /* the implementation would be cleaner (and faster) with ELF symbol aliasing */ -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_sync_rl, xbt, - "Synchronization mechanism (RL)"); +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_sync, xbt, + "Synchronization mechanism"); typedef struct s_xbt_thread_ { xbt_os_thread_t os_thread; @@ -39,7 +39,7 @@ static void *xbt_thread_create_wrapper(void *p) xbt_thread_t xbt_thread_create(const char *name, void_f_pvoid_t code, - void *param) + void *param, int joinable) { xbt_thread_t res = xbt_new0(s_xbt_thread_t, 1); @@ -64,6 +64,7 @@ void xbt_thread_join(xbt_thread_t thread) { DEBUG1("Join thread %p", thread); xbt_os_thread_join(thread->os_thread, NULL); + xbt_free(thread); } void xbt_thread_exit()