From: mquinson Date: Tue, 7 Aug 2007 19:59:41 +0000 (+0000) Subject: Stupid me: I did everything to allow os_threads to have each their own exception... X-Git-Tag: v3.3~1335 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8d258edc98b560ac24607103d3eea739459598eb Stupid me: I did everything to allow os_threads to have each their own exception fetcher/handler, but installing the callbacks. That's why the SG version broke git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4025 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index dad3c66461..ee0d03773f 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -72,6 +72,9 @@ void xbt_os_thread_mod_init(void) { main_thread->exception = xbt_new(ex_ctx_t, 1); XBT_CTX_INITIALIZE(main_thread->exception); + __xbt_ex_ctx = _os_thread_ex_ctx; + __xbt_ex_terminate = _os_thread_ex_terminate; + thread_mod_inited = 1; } void xbt_os_thread_mod_exit(void) {