#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)
{
}
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)
("No pthread in SG when compiled against the ucontext (xbt_os_cond_destroy)");
}
#endif
+#endif