X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dd38b27f7d03f21920f17eda3083b16b19465824..4cebfd8d6fe0ba78ca3aa3a08df69eeebf290793:/include/xbt/xbt_os_thread.h diff --git a/include/xbt/xbt_os_thread.h b/include/xbt/xbt_os_thread.h index 655c8826ff..ebf1b6fccd 100644 --- a/include/xbt/xbt_os_thread.h +++ b/include/xbt/xbt_os_thread.h @@ -51,6 +51,11 @@ XBT_PUBLIC(xbt_os_thread_t) xbt_os_thread_create(const char *name, void *param, void *data); +//#define CORE_BINDING //Uncomment this to enable binding of threads to physical cores. Only Linux. +#ifdef CORE_BINDING +XBT_PUBLIC(int) xbt_os_thread_bind(xbt_os_thread_t thread, int cpu); +#endif + XBT_PUBLIC(void) xbt_os_thread_exit(int *retcode); XBT_PUBLIC(void) xbt_os_thread_detach(xbt_os_thread_t thread); XBT_PUBLIC(xbt_os_thread_t) xbt_os_thread_self(void);