Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
allow to retrieve the name of threads
[simgrid.git] / src / xbt / xbt_rl_synchro.c
index 356313f..140bb5c 100644 (file)
@@ -46,6 +46,14 @@ xbt_thread_t xbt_thread_create(const char*name,void_f_pvoid_t* code, void* param
    return res;
 }
 
+const char* xbt_thread_name(xbt_thread_t t) {
+   return xbt_os_thread_name(t->os_thread);
+}
+
+const char* xbt_thread_self_name(void) {
+   return xbt_os_thread_self_name();
+}
+
 void 
 xbt_thread_join(xbt_thread_t thread) {
    DEBUG1("Join thread %p",thread);