mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Update threading.cpp
This commit is contained in:
@@ -492,6 +492,8 @@ gb_internal u32 thread_current_id(void) {
|
|||||||
__asm__("mov %%fs:0x10,%0" : "=r"(thread_id));
|
__asm__("mov %%fs:0x10,%0" : "=r"(thread_id));
|
||||||
#elif defined(GB_SYSTEM_LINUX)
|
#elif defined(GB_SYSTEM_LINUX)
|
||||||
thread_id = gettid();
|
thread_id = gettid();
|
||||||
|
#elif defined(GB_SYSTEM_HAIKU)
|
||||||
|
thread_id = find_thread(NULL);
|
||||||
#else
|
#else
|
||||||
#error Unsupported architecture for thread_current_id()
|
#error Unsupported architecture for thread_current_id()
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user