Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I don't even know why it worked before.
authorChristophe Thiéry <christopho128@gmail.com>
Fri, 22 Apr 2011 15:29:09 +0000 (17:29 +0200)
committerChristophe Thiéry <christopho128@gmail.com>
Fri, 22 Apr 2011 15:29:09 +0000 (17:29 +0200)
src/xbt/xbt_os_thread.c

index e8c86e3..b020ebd 100644 (file)
@@ -1179,7 +1179,7 @@ void *xbt_os_thread_get_extra_data(void)
 
 xbt_os_rmutex_t xbt_os_rmutex_init(void)
 {
-  xbt_os_rmutex_t rmutex = xbt_new0(struct xbt_os_rmutex_, 0);
+  xbt_os_rmutex_t rmutex = xbt_new0(struct xbt_os_rmutex_, 1);
   rmutex->mutex = xbt_os_mutex_init();
   rmutex->owner = NULL;
   rmutex->count = 0;