X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cd5e6b169f6a55b9e913fe0f8ea3ec85fbb330bd..c14a21f58a8a76971928aa344168ad18f8dabbb5:/src/include/xbt/xbt_os_thread.h diff --git a/src/include/xbt/xbt_os_thread.h b/src/include/xbt/xbt_os_thread.h index a2a1de75d2..b3860d50f2 100644 --- a/src/include/xbt/xbt_os_thread.h +++ b/src/include/xbt/xbt_os_thread.h @@ -28,12 +28,14 @@ SG_BEGIN_DECL() /** \brief Thread data type (opaque structure) */ typedef struct xbt_os_thread_ *xbt_os_thread_t; - XBT_PUBLIC(xbt_os_thread_t) xbt_os_thread_create(pvoid_f_pvoid_t start_routine,void* param); + XBT_PUBLIC(xbt_os_thread_t) xbt_os_thread_create(const char *name,pvoid_f_pvoid_t start_routine,void* param); XBT_PUBLIC(void) xbt_os_thread_exit(int *retcode); XBT_PUBLIC(xbt_os_thread_t) xbt_os_thread_self(void); /* xbt_os_thread_join frees the joined thread (ie the XBT wrapper around it, the OS frees the rest) */ XBT_PUBLIC(void) xbt_os_thread_join(xbt_os_thread_t thread,void ** thread_return); XBT_PUBLIC(void) xbt_os_thread_yield(void); + XBT_PUBLIC(void) xbt_os_thread_cancel(xbt_os_thread_t thread); + XBT_PUBLIC(void*) xbt_os_thread_getparam(void); /** \brief Thread mutex data type (opaque structure) */