This commit is contained in:
Jeroen van Rijn
2025-06-12 11:30:36 +02:00
parent a2be547dfd
commit ac5f3746cf

View File

@@ -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)