Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
removing misplaced code (was moved from here before routing update)
[simgrid.git] / src / xbt / xbt_sg_stubs.c
index d91a955..56a9bbe 100644 (file)
 #include "portable.h"           /* CONTEXT_THREADS */
 
 #ifndef CONTEXT_THREADS
+#ifndef WIN32
 
 /* xbt_threads is loaded in libsimgrid when they are used to implement the xbt_context.
  * The decision (and the loading) is made in xbt/context.c.
  */
 
 /* Mod_init/exit mecanism */
-void xbt_os_thread_mod_init(void)
+void xbt_os_thread_mod_preinit(void)
 {
 }
 
-void xbt_os_thread_mod_exit(void)
+void xbt_os_thread_mod_postexit(void)
 {
 }
 
@@ -71,30 +72,39 @@ void xbt_os_thread_yield(void)
 
 xbt_os_mutex_t xbt_os_mutex_init(void)
 {
+   /*
   xbt_backtrace_display_current();
   xbt_die
     ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_init)");
+    */
+   return NULL;
 }
 
 void xbt_os_mutex_acquire(xbt_os_mutex_t mutex)
 {
+   /*
   xbt_backtrace_display_current();
   xbt_die
     ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_acquire)");
+    */
 }
 
 void xbt_os_mutex_release(xbt_os_mutex_t mutex)
 {
+   /*
   xbt_backtrace_display_current();
   xbt_die
     ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_release)");
+    */
 }
 
 void xbt_os_mutex_destroy(xbt_os_mutex_t mutex)
 {
+   /*
   xbt_backtrace_display_current();
   xbt_die
     ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_destroy)");
+    */
 }
 
 xbt_os_cond_t xbt_os_cond_init(void)
@@ -132,3 +142,4 @@ void xbt_os_cond_destroy(xbt_os_cond_t cond)
     ("No pthread in SG when compiled against the ucontext (xbt_os_cond_destroy)");
 }
 #endif
+#endif