From: Christophe ThiƩry Date: Fri, 22 Apr 2011 10:32:37 +0000 (+0200) Subject: I forgot to also move the structure definition X-Git-Tag: v3_6_rc3~111 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/37a4ff2a0e7306c51b6b3ca04d1c2ba82157645f I forgot to also move the structure definition --- diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index c79377a68e..2bbec7e4e9 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -242,12 +242,6 @@ typedef struct xbt_os_mutex_ { 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 #include @@ -1134,6 +1128,13 @@ void xbt_os_sem_get_value(xbt_os_sem_t sem, int *svalue) #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;