diff options
| author | avanspector <avanspector@gmail.com> | 2024-02-25 02:34:41 +0100 |
|---|---|---|
| committer | avanspector <avanspector@gmail.com> | 2024-02-25 02:34:41 +0100 |
| commit | 028a79e66c714180852c94db165de3aaa97c1df8 (patch) | |
| tree | 92bbcc37d97d213b3c628833270c66992e6ee968 /src | |
| parent | 0a6673220bd50c05f8c5c5bd34e79b8f676152e2 (diff) | |
Update threading.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 |