/* This is always part of SG, never of RL. Content: */
/* - a bunch of stub functions of the thread related function that we need */
/* This is always part of SG, never of RL. Content: */
/* - a bunch of stub functions of the thread related function that we need */
/* - a bunch of stub functions of the java related function when we don't */
/* compile java bindings. */
/* In RL, java is useless, and threads are always part of the picture, */
/* ucontext never */
/* - a bunch of stub functions of the java related function when we don't */
/* compile java bindings. */
/* In RL, java is useless, and threads are always part of the picture, */
/* ucontext never */
/* 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.
*/
/* 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.
*/
xbt_os_thread_t xbt_os_thread_create(const char *name,
pvoid_f_pvoid_t start_routine,
xbt_os_thread_t xbt_os_thread_create(const char *name,
pvoid_f_pvoid_t start_routine,
- ("No pthread in SG when compiled against the ucontext (xbt_os_thread_exit)");
+ ("No pthread in SG when compiled against the ucontext (xbt_os_thread_exit)");
+}
+
+void xbt_os_thread_detach(xbt_os_thread_t worker)
+{
+ xbt_backtrace_display_current();
+ xbt_die
+ ("No pthread in SG when compiled against the ucontext (xbt_os_thread_exit)");
- /*
- xbt_backtrace_display_current();
- xbt_die
- ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_init)");
- */
- return NULL;
+ /*
+ xbt_backtrace_display_current();
+ xbt_die
+ ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_init)");
+ */
+ return NULL;
- /*
- xbt_backtrace_display_current();
- xbt_die
- ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_acquire)");
- */
+ /*
+ xbt_backtrace_display_current();
+ xbt_die
+ ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_acquire)");
+ */
- /*
- xbt_backtrace_display_current();
- xbt_die
- ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_release)");
- */
+ /*
+ xbt_backtrace_display_current();
+ xbt_die
+ ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_release)");
+ */
- /*
- xbt_backtrace_display_current();
- xbt_die
- ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_destroy)");
- */
+ /*
+ xbt_backtrace_display_current();
+ xbt_die
+ ("No pthread in SG when compiled against the ucontext (xbt_os_mutex_destroy)");
+ */
}
void xbt_os_cond_wait(xbt_os_cond_t cond, xbt_os_mutex_t mutex)
{
xbt_backtrace_display_current();
xbt_die
}
void xbt_os_cond_wait(xbt_os_cond_t cond, xbt_os_mutex_t mutex)
{
xbt_backtrace_display_current();
xbt_die