Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
On windows pthread_atfork is not implemented
[simgrid.git] / src / xbt / xbt_os_thread.c
index a53dfc9..3cb6dbb 100644 (file)
@@ -137,7 +137,11 @@ void xbt_os_thread_mod_postexit(void)
 int xbt_os_thread_atfork(void (*prepare)(void),
                          void (*parent)(void), void (*child)(void))
 {
+#ifdef WIN32
+       xbt_die("Function pthread_atfork not implemented");
+#else
   return pthread_atfork(prepare, parent, child);
+#endif
 }
 
 static void *wrapper_start_routine(void *s)