Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use of busy wait and not posix for te moment.
authorunknown <pierre@.(none)>
Mon, 23 Jan 2012 09:09:31 +0000 (10:09 +0100)
committerunknown <pierre@.(none)>
Mon, 23 Jan 2012 09:09:41 +0000 (10:09 +0100)
On windows we don't have futex so we must use busy wait.

src/xbt/parmap.c

index 9f2f35b..c0ffc9f 100644 (file)
@@ -124,7 +124,8 @@ static void xbt_parmap_set_mode(xbt_parmap_t parmap, e_xbt_parmap_mode_t mode)
 #ifdef HAVE_FUTEX_H
     mode = XBT_PARMAP_FUTEX;
 #else
-    mode = XBT_PARMAP_POSIX;
+    //For now use busy wait because posix is unimplemented
+    mode = XBT_PARMAP_BUSY_WAIT;
 #endif
   }
   parmap->mode = mode;