Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add missing functions with windows
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Mar 2011 11:20:55 +0000 (11:20 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Mar 2011 11:20:55 +0000 (11:20 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9762 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/xbt_os_thread.c

index 3dc40c5..82609ac 100644 (file)
@@ -1135,4 +1135,14 @@ void xbt_os_sem_get_value(xbt_os_sem_t sem, int *svalue)
   LeaveCriticalSection(&(sem->value_lock));
 }
 
+void xbt_os_thread_set_extra_data(void *data)
+{
+  xbt_os_thread_self()->extra_data = data;
+}
+
+void *xbt_os_thread_get_extra_data(void)
+{
+  return xbt_os_thread_self()->extra_data;
+}
+
 #endif