X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/24805d9be154cac4d5300baecba35b4931204f97..88c7776b4e29712f5619c795110cbe343e5350a0:/src/gras/sg_stubs.c diff --git a/src/gras/sg_stubs.c b/src/gras/sg_stubs.c index 9b1544a586..cf73c061e2 100644 --- a/src/gras/sg_stubs.c +++ b/src/gras/sg_stubs.c @@ -28,56 +28,69 @@ void xbt_thread_mod_exit(void) {} /* Main functions */ xbt_thread_t xbt_thread_create(pvoid_f_pvoid_t start_routine,void* param) { - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thread_create)"); } void xbt_thread_exit(int *retcode){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thread_exit)"); } xbt_thread_t xbt_thread_self(void){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thread_self)"); } void xbt_thread_yield(void){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thread_yield)"); } xbt_mutex_t xbt_mutex_init(void){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_mutex_init)"); } void xbt_mutex_lock(xbt_mutex_t mutex){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_mutex_lock)"); } void xbt_mutex_unlock(xbt_mutex_t mutex){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_mutex_unlock)"); } void xbt_mutex_destroy(xbt_mutex_t mutex){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_mutex_destroy)"); } xbt_thcond_t xbt_thcond_init(void){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thcond_init)"); } void xbt_thcond_wait(xbt_thcond_t cond, xbt_mutex_t mutex){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thcond_wait)"); } void xbt_thcond_signal(xbt_thcond_t cond){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thcond_signal)"); } void xbt_thcond_broadcast(xbt_thcond_t cond){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thcond_broadcast)"); } void xbt_thcond_destroy(xbt_thcond_t cond){ - xbt_die("No pthread in SG when compiled against the ucontext"); + xbt_backtrace_display(); + xbt_die("No pthread in SG when compiled against the ucontext (xbt_thcond_destroy)"); }