From 028a79e66c714180852c94db165de3aaa97c1df8 Mon Sep 17 00:00:00 2001 From: avanspector Date: Sun, 25 Feb 2024 02:34:41 +0100 Subject: [PATCH] Update threading.cpp --- src/threading.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/threading.cpp b/src/threading.cpp index 1805e51e2..6602bf67e 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -492,6 +492,8 @@ gb_internal u32 thread_current_id(void) { __asm__("mov %%fs:0x10,%0" : "=r"(thread_id)); #elif defined(GB_SYSTEM_LINUX) thread_id = gettid(); +#elif defined(GB_SYSTEM_HAIKU) + thread_id = find_thread(NULL); #else #error Unsupported architecture for thread_current_id() #endif