Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I forgot to also move the structure definition
authorChristophe Thiéry <christopho128@gmail.com>
Fri, 22 Apr 2011 10:32:37 +0000 (12:32 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Fri, 22 Apr 2011 10:32:37 +0000 (12:32 +0200)
src/xbt/xbt_os_thread.c

index c79377a..2bbec7e 100644 (file)
@@ -242,12 +242,6 @@ typedef struct xbt_os_mutex_ {
   pthread_mutex_t m;
 } s_xbt_os_mutex_t;
 
   pthread_mutex_t m;
 } s_xbt_os_mutex_t;
 
-typedef struct xbt_os_rmutex_ {
-  xbt_os_mutex_t mutex;
-  xbt_os_thread_t owner;
-  int count;
-} s_xbt_os_rmutex_t;
-
 #include <time.h>
 #include <math.h>
 
 #include <time.h>
 #include <math.h>
 
@@ -1134,6 +1128,13 @@ void xbt_os_sem_get_value(xbt_os_sem_t sem, int *svalue)
 
 #endif
 
 
 #endif
 
+/***** reentrant mutexes *****/
+typedef struct xbt_os_rmutex_ {
+  xbt_os_mutex_t mutex;
+  xbt_os_thread_t owner;
+  int count;
+} s_xbt_os_rmutex_t;
+
 void xbt_os_thread_set_extra_data(void *data)
 {
   xbt_os_thread_self()->extra_data = data;
 void xbt_os_thread_set_extra_data(void *data)
 {
   xbt_os_thread_self()->extra_data = data;