aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-12 11:30:36 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-12 11:30:36 +0200
commitac5f3746cfe8f3da2f166d52828ee7c002429efa (patch)
tree4d37986da4f242f97777da5a39f43d5a54a1d46d
parenta2be547dfd704d101a601ac803529c0625cc43ea (diff)
Fix #5321
-rw-r--r--core/thread/thread_windows.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/thread/thread_windows.odin b/core/thread/thread_windows.odin
index cc73a2d6a..438f79c6f 100644
--- a/core/thread/thread_windows.odin
+++ b/core/thread/thread_windows.odin
@@ -31,8 +31,6 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
return 0
}
- t.id = sync.current_thread_id()
-
{
init_context := t.init_context
@@ -76,6 +74,7 @@ _create :: proc(procedure: Thread_Proc, priority: Thread_Priority) -> ^Thread {
thread.procedure = procedure
thread.win32_thread = win32_thread
thread.win32_thread_id = win32_thread_id
+ thread.id = int(win32_thread_id)
ok := win32.SetThreadPriority(win32_thread, _thread_priority_map[priority])
assert(ok == true)