X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3ae712a1b95294052b6e8136d0f0f2d4b30e6eb..5a97de8c98502af9f74cfceb924fa02e0fd80925:/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);