From 1e19722bba40db422336bb1330356a609b138ed0 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 6 Oct 2015 21:31:57 +0200 Subject: [PATCH] [windows] typo breaking the build --- src/xbt/xbt_os_thread.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index 1a085c1b72..91db34bd79 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -730,15 +730,13 @@ void xbt_os_thread_mod_preinit(void) { xbt_self_thread_key = TlsAlloc(); - main_thread = xbt_new(s_xbt_os_thread_t, 1); + xbt_os_thread_t main_thread = xbt_new0(s_xbt_os_thread_t, 1); main_thread->name = (char *) "main"; main_thread->start_routine = NULL; main_thread->param = NULL; - main_thread->running_ctx = xbt_new(xbt_running_ctx_t, 1); - XBT_RUNNING_CTX_INITIALIZE(main_thread->running_ctx); if (!TlsSetValue(xbt_self_thread_key, main_thread)) - THROWF(system_error, errcode, + THROWF(system_error, (int)GetLastError(), "Impossible to set the SimGrid identity descriptor to the main thread (TlsSetValue() failed)"); } -- 2.20.1