Browse Source

Update threading.cpp

avanspector 1 year ago
parent
commit
028a79e66c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/threading.cpp

+ 2 - 0
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