From f7413ca974d783e63d04c023799383f9c7138d95 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 5 Jul 2021 16:36:07 +0100 Subject: [PATCH] Fix `thread_unix.odin` --- core/thread/thread_unix.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/thread/thread_unix.odin b/core/thread/thread_unix.odin index 5bd398b7e..ef17596b8 100644 --- a/core/thread/thread_unix.odin +++ b/core/thread/thread_unix.odin @@ -38,6 +38,7 @@ Thread_Os_Specific :: struct #align 16 { // _create :: proc(procedure: Thread_Proc, priority := Thread_Priority.Normal) -> ^Thread { __linux_thread_entry_proc :: proc "c" (t: rawptr) -> rawptr { + context = runtime.default_context(); t := (^Thread)(t); sync.condition_wait_for(&t.start_gate); sync.condition_destroy(&t.start_gate);