From 6f3cc3168275a6797a6872894aa89acd02754709 Mon Sep 17 00:00:00 2001 From: PePerRoNii Date: Mon, 14 Jul 2025 18:17:19 +0700 Subject: [PATCH] substitute sync.current_thread_id with posix.pthread_self for unix --- core/thread/thread_unix.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/thread/thread_unix.odin b/core/thread/thread_unix.odin index 285b1fee9..cadf7ba9a 100644 --- a/core/thread/thread_unix.odin +++ b/core/thread/thread_unix.odin @@ -191,7 +191,7 @@ _get_name :: proc(thread: ^Thread, allocator: runtime.Allocator, loc: runtime.So tid : posix.pthread_t if thread == nil { - tid = transmute(posix.pthread_t)sync.current_thread_id() + tid = posix.pthread_self() } else { tid = thread.unix_thread } @@ -218,7 +218,7 @@ _set_name :: proc(thread: ^Thread, name:string) { } else { tid: posix.pthread_t if thread == nil { - tid = transmute(posix.pthread_t)sync.current_thread_id + tid = posix.pthread_self() } else { tid = t.unix_thread }