Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
On windows pthread_atfork is not implemented
authorunknown <pierre@.(none)>
Tue, 10 Jan 2012 21:38:11 +0000 (22:38 +0100)
committerunknown <pierre@.(none)>
Tue, 10 Jan 2012 21:38:11 +0000 (22:38 +0100)
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)